@Documented @Retention(value=RUNTIME) @Target(value=TYPE) public @interface Component
| Modifier and Type | Optional Element and Description |
|---|---|
String[] |
hints
Sometimes you want to register the component several times with different hints.
|
Class<?>[] |
roles
When specified forces the component to be registered as many times as there are roles specified.
|
boolean |
staticRegistration
Whether the Component should be registered in a
components.txt file or not (this can happen for example
when using a component in a test and registering it dynamically without going through a components.txt
file). |
String |
value
Deprecated.
since 3.1M1 use the
@Named annotation instead |
@Deprecated public abstract String value
@Named annotation insteadpublic abstract String[] hints
public abstract Class<?>[] roles
public abstract boolean staticRegistration
components.txt file or not (this can happen for example
when using a component in a test and registering it dynamically without going through a components.txt
file).Copyright © 2004–2015 XWiki. All rights reserved.