|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Documented @Retention(value=RUNTIME) @Target(value=FIELD) @Inherited public @interface Requirement
Defines a field or method that needs to be injected with a component. A hint can be specified to choose which implementation to use.
| Optional Element Summary | |
|---|---|
java.lang.String[] |
hints
When injecting a Collection of requirements, allows specifying a discrete list of hints to use. |
java.lang.Class<?> |
role
Deprecated. since 2.7RC1 generic types are guessed too |
java.lang.String |
value
The hint value selecting a specific component implementation to use. |
public abstract java.lang.String value
@Deprecated public abstract java.lang.Class<?> role
public abstract java.lang.String[] hints
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||