@Retention(CLASS) @Target(TYPE) public @interface 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.

????:
  • "The Designate element of a Meta Type Resource."
  • ??????

    ????
    ??????
    ?????
    ??
    The type of the ObjectClassDefinition for this Designate.
  • ??????

    ????
    ??????
    ????
    ??
    boolean
    Specifies whether this Designate is for a factory PID.
  • ??????

    • factory

      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.

      ????:
      • "The pid and factoryPid attributes of the Designate element of a Meta Type Resource."
      ???:
      false