Annotation Type Designate
-
@Retention(CLASS) @Target(TYPE) public @interface DesignateGenerate aDesignateelement in the Meta Type Resource for anObjectClassDefinitionusing the annotated Declarative Services component.This annotation must be used on a type that is also annotated with the Declarative Services
Componentannotation. The component must only have a single PID which is used for the generatedDesignateelement.This annotation is not processed at runtime. It must be processed by tools and used to contribute to a Meta Type Resource document for the bundle.
- See Also:
- "The Designate element of a Meta Type Resource."
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.Class<?>ocdThe type of theObjectClassDefinitionfor this Designate.
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description booleanfactorySpecifies whether this Designate is for a factory PID.
-
-
-
Element Detail
-
ocd
java.lang.Class<?> ocd
The type of theObjectClassDefinitionfor this Designate.The specified type must be annotated with
ObjectClassDefinition.- See Also:
- "The ocdref attribute of the Designate element of a Meta Type Resource."
-
-
-
factory
boolean factory
Specifies whether this Designate is for a factory PID.If
false, then the PID value from the annotated component will be used in thepidattribute of the generatedDesignateelement. Iftrue, then the PID value from the annotated component will be used in thefactoryPidattribute of the generatedDesignateelement.- See Also:
- "The pid and factoryPid attributes of the Designate element of a Meta Type Resource."
- Default:
- false
-
-