@Retention(value=CLASS) @Target(value=TYPE) public @interface Designate
Designateelement in the Meta Type Resource for an
ObjectClassDefinitionusing the annotated Declarative Services component.
This annotation must be used on a type that is also annotated with the
Component annotation. The component must only have a single PID which is
used for the generated
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.
|Modifier and Type||Required Element and Description|
The type of the
|Modifier and Type||Optional Element and Description|
Specifies whether this Designate is for a factory PID.
public abstract java.lang.Class<?> ocd
ObjectClassDefinitionfor this Designate.
The specified type must be annotated with
public abstract boolean factory
false, then the PID value from the annotated component will be
used in the
pid attribute of the generated
true, then the PID value from the annotated component
will be used in the
factoryPid attribute of the generated
Copyright © OSGi Alliance (2000, 2018). All Rights Reserved. Licensed under the OSGi Specification License, Version 2.0