|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={METHOD,CONSTRUCTOR,FIELD,PARAMETER,ANNOTATION_TYPE}) @Retention(value=RUNTIME) public @interface Inject
Annotates members and parameters which should have their value[s] injected. If applied to another annotation type, that annotation type can act as a surrogate and save you from having to repeat the dependency name over and over.
Optional Element Summary | |
---|---|
boolean |
required
Whether or not injection is required. |
String |
value
Dependency name. |
public abstract String value
Key.DEFAULT_NAME
.
public abstract boolean required
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |