aQute.bnd.annotation.metatype
Annotation Type Meta.OCD


@Target(value=TYPE)
@Retention(value=RUNTIME)
public static @interface Meta.OCD

The OCD Annotation maps to the OCD element in the Metatype specification. The only difference is that it is possible to create a Designate element as well.


Optional Element Summary
 java.lang.String description
          A description for this ocd.
 boolean factory
          Defines if this is for a factory or not.
 java.lang.String id
          The id of the component.
 java.lang.String localization
          The localization prefix.
 java.lang.String name
          The name for this component.
 

name

public abstract java.lang.String name
The name for this component. The default name is a the short class name that us un-camel cased to make it more readable.

Returns:
The name of this component
Default:
"\u00a7NULL\u00a7"

id

public abstract java.lang.String id
The id of the component. Default the name of the class in FQN notation but with nested classes using the $ as separator (not .). The Felix webconsole always uses this id as the PID and not the pid in the Designate element. Reported as an error.

Returns:
the id
Default:
"\u00a7NULL\u00a7"

localization

public abstract java.lang.String localization
The localization prefix. The default localization prefix is the name of the class with a $ separator for nested classes.

Returns:
the localization prefix.
Default:
"\u00a7NULL\u00a7"

description

public abstract java.lang.String description
A description for this ocd. The default is empty.

Returns:
the description
Default:
"\u00a7NULL\u00a7"

factory

public abstract boolean factory
Defines if this is for a factory or not.

Default:
false