org.osgi.service.metatype.annotations
Annotation Type Designate


@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.

Author:
$Id: 469d72b12eccd2f38dd69be1deb790fb28c25a4c $
See Also:
"The Designate element of a Meta Type Resource."

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

ocd

public abstract Class<?> ocd
The type of the ObjectClassDefinition for 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

public abstract 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 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.

See Also:
"The pid and factoryPid attributes of the Designate element of a Meta Type Resource."
Default:
false


Copyright © 2014 aQute SARL. All rights reserved.