|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,CONSTRUCTOR,FIELD}) @Retention(value=RUNTIME) public @interface Inject
Annotates members which should have their value[s] injected.
Optional Element Summary | |
---|---|
boolean |
optional
Indicates whether injection at the target is optional or not. |
public abstract boolean optional
false
. Can be used on methods and fields. If a method has
multiple parameters and one parameter binding is missing, the method
won't be invoked at all. Not applicable to constructors or other
annotations.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |