org.xwiki.component.annotation
Annotation Type Requirement


Deprecated. starting with 3.1M1 use the JSR330 Inject and Named annotations instead

@Documented
@Retention(value=RUNTIME)
@Target(value=FIELD)
@Inherited
@Deprecated
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.

Since:
1.8.1
Version:
$Id: 78d2d10f658b8e9c6ab05e036cc6c3cad0ea9fc5 $

Optional Element Summary
 String[] hints
          Deprecated. When injecting a Collection of requirements, allows specifying a discrete list of hints to use.
 String value
          Deprecated. The hint value selecting a specific component implementation to use.
 

value

public abstract String value
Deprecated. 
The hint value selecting a specific component implementation to use.

Default:
""

hints

public abstract 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.

Default:
{}


Copyright © 2004–2015 XWiki. All rights reserved.