Class NamedImpl

  • All Implemented Interfaces:
    java.lang.annotation.Annotation

    public class NamedImpl
    extends AnnotationLiteral<javax.inject.Named>
    implements javax.inject.Named
    This is an implementation of the Named annotation.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String name  
      private static long serialVersionUID
      For serialization
    • Constructor Summary

      Constructors 
      Constructor Description
      NamedImpl​(java.lang.String name)
      Creates a Named annotation with the given name
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String toString()  
      java.lang.String value()  
      • 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
    • Field Detail

      • serialVersionUID

        private static final long serialVersionUID
        For serialization
        See Also:
        Constant Field Values
      • name

        private final java.lang.String name
    • Constructor Detail

      • NamedImpl

        public NamedImpl​(java.lang.String name)
        Creates a Named annotation with the given name
        Parameters:
        name - The non-null name to give the annotation
    • Method Detail

      • value

        public java.lang.String value()
      • toString

        public java.lang.String toString()
        Specified by:
        toString in interface java.lang.annotation.Annotation
        Overrides:
        toString in class java.lang.Object