Package org.xwiki.component.annotation
Annotation Type Requirement
-
@Documented @Retention(RUNTIME) @Target(FIELD) @Inherited @Deprecated public @interface Requirement
Deprecated.starting with 3.1M1 use the JSR330 Inject and Named annotations insteadDefines a field or method that needs to be injected with a component. A hint can be specified to choose which implementation to use.- Since:
- 1.8.1
- Version:
- $Id: e1d46db935040763a3454b6ba4e541db8f6f12be $
-
-
Element Detail
-
value
String value
Deprecated.- Returns:
- the hint value selecting a specific component implementation to use.
- Default:
- ""
-
-
-
hints
String[] hints
Deprecated.When injecting a Collection of requirements, allows specifying a discrete list of hints to use. If these are not specified, then all implementations for the specified role will be injected.- Returns:
- the list of hints
- Default:
- {}
-
-