@Target(value={FIELD,PARAMETER,ANNOTATION_TYPE})
@Inherited
public @interface Requires
Modifier and Type | Optional Element and Description |
---|---|
java.lang.Class<? extends java.util.Comparator> |
comparator
Set the comparator.
|
java.lang.Class |
defaultimplementation
Set the default-implementation to use if the dependency is optional,
and no providers are available.
|
java.lang.Class<? extends java.lang.RuntimeException> |
exception
Set the exception to throw when the service is not available.
|
java.lang.String |
filter
Set the LDAP filter of the dependency.
|
java.lang.String |
from
Set the from attribute.
|
java.lang.String |
id
Set the dependency id.
|
boolean |
nullable
Enable / Disable nullable pattern.
|
boolean |
optional
Set if the dependency is optional.
|
BindingPolicy |
policy
Set the binding policy.
|
boolean |
proxy
Set to true if the service dependency is injected
as a proxy.
|
java.lang.Class |
specification
Set the required service specification.
|
int |
timeout
Set the time to wait before applying the 'no service available' action.
|
public abstract java.lang.String filter
public abstract boolean optional
public abstract boolean nullable
public abstract java.lang.Class defaultimplementation
public abstract java.lang.Class<? extends java.lang.RuntimeException> exception
RuntimeException
.
Default: no exception.public abstract BindingPolicy policy
public abstract java.lang.Class<? extends java.util.Comparator> comparator
Comparator
public abstract java.lang.Class specification
Copyright © 2006-2014 The Apache Software Foundation. All Rights Reserved.