Class PID.Literal

  • All Implemented Interfaces:
    java.lang.annotation.Annotation
    Enclosing class:
    PID

    public static final class PID.Literal
    extends javax.enterprise.util.AnnotationLiteral<PID>
    implements PID
    Support inline instantiation of the PID annotation.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.osgi.service.cdi.annotations.PID

        PID.Literal
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static PID.Literal of​(java.lang.String pid, ConfigurationPolicy policy)  
      ConfigurationPolicy policy()  
      java.lang.String value()  
      • Methods inherited from class javax.enterprise.util.AnnotationLiteral

        annotationType, equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.lang.annotation.Annotation

        annotationType, equals, hashCode, toString
    • Method Detail

      • of

        public static final PID.Literal of​(java.lang.String pid,
                                           ConfigurationPolicy policy)
        Parameters:
        pid - the configuration pid
        policy - the policy of the configuration
        Returns:
        an instance of PID
      • value

        public java.lang.String value()