@Retention(value=RUNTIME) @Documented public @interface HasMetaInfo
Meta Info of any type can be set on the service during assembly, e.g.;
module.addService( MyService.class ).setMetaInfo( new MyCustomInfo(someData) );
and then at an injection point you can do this:
@Service @HasMetaInfo(MyCustomInfo.class) MyService service;
to get only a service that has a MyCustomInfo instance set as meta info.
Modifier and Type | Required Element and Description |
---|---|
Class[] |
value
The Class(es) needed to have been defined in the Service meta info for a qualifier to evaluate true.
|
Modifier and Type | Optional Element and Description |
---|---|
boolean |
anded
True if the Classes defined in the value() field should be AND'ed instead of OR'ed.
|
public abstract 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.