@Target(value={METHOD,TYPE,ANNOTATION_TYPE}) @Retention(value=RUNTIME) @Documented @Repeatable(value=DomainList.class) @API(status=MAINTAINED, since="1.2.0") public @interface Domain
@Domain(MyDomainContext.class)
to use only
arbitrary providers and
arbitrary configurators
defined in given context class
You can have many domains on the same element. Providers and configurators from all domains will be considered.
The priority of ArbitraryProviders and ArbitraryConfigurators can be changed
using priority
Modifier and Type | Fields and Description |
---|---|
static int |
PRIORITY_NOT_SET |
Modifier and Type | Required Element and Description |
---|---|
java.lang.Class<? extends DomainContext> |
value |
Modifier and Type | Optional Element and Description |
---|---|
int |
priority |
public abstract java.lang.Class<? extends DomainContext> value