Class ManagedObjectDependencyMetaDataImpl<O extends java.lang.Enum<O>>

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addAnnotation​(java.lang.Object annotation)
      Adds an annotation to describe the dependency.
      java.lang.Object[] getAnnotations()
      Obtains the annotations for the dependency.
      O getKey()
      Obtains the Enum key identifying this dependency.
      java.lang.String getLabel()
      Provides a descriptive name for this dependency.
      java.lang.Class<?> getType()
      Obtains the Class that the dependent object must extend/implement.
      java.lang.String getTypeQualifier()
      Obtains the qualifier on the type.
      void setLabel​(java.lang.String label)
      Specifies a label to describe the dependency.
      void setTypeQualifier​(java.lang.String qualifier)
      Specifies the type qualifier.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManagedObjectDependencyMetaDataImpl

        public ManagedObjectDependencyMetaDataImpl​(O key,
                                                   java.lang.Class<?> type)
        Initiate.
        Parameters:
        key - Key identifying the dependency.
        type - Type of dependency.
    • Method Detail

      • setLabel

        public void setLabel​(java.lang.String label)
        Specifies a label to describe the dependency.
        Parameters:
        label - Label to describe the dependency.
      • setTypeQualifier

        public void setTypeQualifier​(java.lang.String qualifier)
        Specifies the type qualifier.
        Parameters:
        qualifier - Type qualifier.
      • addAnnotation

        public void addAnnotation​(java.lang.Object annotation)
        Adds an annotation to describe the dependency.
        Parameters:
        annotation - Annotation to describe the dependency.
      • getTypeQualifier

        public java.lang.String getTypeQualifier()
        Description copied from interface: ManagedObjectDependencyMetaData

        Obtains the qualifier on the type.

        This is to enable qualifying the type of dependency required.

        Specified by:
        getTypeQualifier in interface ManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
        Returns:
        Qualifier on the type. May be null if not qualifying the type.
      • getLabel

        public java.lang.String getLabel()
        Description copied from interface: ManagedObjectDependencyMetaData
        Provides a descriptive name for this dependency. This is useful to better describe the dependency.
        Specified by:
        getLabel in interface ManagedObjectDependencyMetaData<O extends java.lang.Enum<O>>
        Returns:
        Descriptive name for this dependency.