|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Retention(value=RUNTIME) @Documented public @interface HasMetaInfo
Filter services based on Meta Info being declared on the Service. Meta Info of any type can be set on the service
during assembly, e.g.;
module.addService( MyService.class ).setMetaInfo( new MyCustomInfo(someData) );
@Service @HasMetaInfo(MyCustomInfo.class) MyService service;
to get only a service that has a MyCustomInfo instance set as meta info.
Required Element Summary | |
---|---|
java.lang.Class[] |
value
The Class(es) needed to have been defined in the Service meta info for a qualifier to evaluate true. |
Optional Element Summary | |
---|---|
boolean |
anded
True if the Classes defined in the value() field should be AND'ed instead of OR'ed. |
Element Detail |
---|
public abstract java.lang.Class[] value
anded()
parameter will define if they must be
AND'ed or OR'ed together.public abstract boolean anded
value()
must be defined for the service for it to be
qualified. If false, if any of the Class types defined in value()
is defined for the service
the service is qualified.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |