@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 |
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. False can be used for
example when using a component in a test and registering it dynamically without going through a
components.txt file.Copyright © 2004–2016 XWiki. All rights reserved.