Annotation Type Meta.OCD


  • @Target(TYPE)
    @Retention(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

      Optional Elements 
      Modifier and Type Optional Element Description
      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.
    • Element Detail

      • name

        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

        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

        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

        java.lang.String description
        A description for this ocd. The default is empty.
        Returns:
        the description
        Default:
        "\u00a7NULL\u00a7"
      • factory

        boolean factory
        Defines if this is for a factory or not.
        Default:
        false