|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Retention(value=CLASS) @Target(value=TYPE) public @interface Designate
Generate a Meta Type Resource using the annotated Declarative Services
component as the PID value for a Designate element.
This annotation must be used on a type that is also annotated with the
Declarative Services Component annotation. The component must only have a single PID which is
used for the generated Designate element.
This annotation is not processed at runtime. It must be processed by tools and used to generate a Meta Type Resource document for the bundle.
| Required Element Summary | |
|---|---|
Class<?> |
ocd
The type of the ObjectClassDefinition for this Designate. |
| Optional Element Summary | |
|---|---|
boolean |
factory
Specifies whether this Designate is for a factory PID. |
| Element Detail |
|---|
public abstract Class<?> ocd
ObjectClassDefinition for this Designate.
The specified type must be annotated with ObjectClassDefinition.
public abstract boolean factory
If false, then the PID value from the annotated component will be
used in the pid attribute of the generated Designate
element. If true, then the PID value from the annotated component
will be used in the factoryPid attribute of the generated
Designate element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||