@Target(value={FIELD,PARAMETER,ANNOTATION_TYPE}) @Inherited public @interface Requires
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends Comparator> |
comparator
Set the comparator.
|
Class |
defaultimplementation
Set the default-implementation to use if the dependency is optional,
and no providers are available.
|
Class<? extends RuntimeException> |
exception
Set the exception to throw when the service is not available.
|
String |
filter
Set the LDAP filter of the dependency.
|
String |
from
Set the from attribute.
|
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.
|
Class |
specification
Set the required service specification.
|
int |
timeout
Set the time to wait before applying the 'no service available' action.
|
public abstract String filter
public abstract boolean optional
public abstract String id
public abstract boolean nullable
public abstract Class defaultimplementation
public abstract Class<? extends RuntimeException> exception
RuntimeException
.
Default: no exception.public abstract BindingPolicy policy
public abstract Class<? extends Comparator> comparator
Comparator
public abstract String from
public abstract Class specification
Copyright © 2006–2023 The Apache Software Foundation. All rights reserved.