Annotation Type Designate
Generate a
Designate
element in the Meta Type Resource for an
ObjectClassDefinition
using the annotated Declarative Services
component.
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 contribute to a Meta Type Resource document for the bundle.
- Author:
- $Id: 0d8b17fa7a1d8eb42c961f52c3a60ed0c4f5f110 $
- See Also:
-
Required Element Summary
Required ElementsModifier and TypeRequired ElementDescriptionClass
<?> The type of theObjectClassDefinition
for this Designate. -
Optional Element Summary
Optional ElementsModifier and TypeOptional ElementDescriptionboolean
Specifies whether this Designate is for a factory PID.
-
Element Details
-
ocd
Class<?> ocdThe type of theObjectClassDefinition
for this Designate.The specified type must be annotated with
ObjectClassDefinition
.- See Also:
-
factory
boolean factorySpecifies whether this Designate is for a factory PID.If
false
, then the PID value from the annotated component will be used in thepid
attribute of the generatedDesignate
element. Iftrue
, then the PID value from the annotated component will be used in thefactoryPid
attribute of the generatedDesignate
element.- See Also:
- Default:
false
-