Class AutoWire

  • All Implemented Interfaces:
    java.lang.Comparable<AutoWire>

    public class AutoWire
    extends java.lang.Object
    implements java.lang.Comparable<AutoWire>
    Auto-wire.
    Author:
    Daniel Sagenschneider
    • Constructor Summary

      Constructors 
      Constructor Description
      AutoWire​(java.lang.Class<?> type)
      Instantiate.
      AutoWire​(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier, java.lang.Class<?> type)
      Instantiate.
      AutoWire​(java.lang.String type)
      Instantiate with only type.
      AutoWire​(java.lang.String qualifier, java.lang.Class<?> type)
      Instantiate.
      AutoWire​(java.lang.String qualifier, java.lang.String type)
      Instantiate.
    • Constructor Detail

      • AutoWire

        public AutoWire​(java.lang.String qualifier,
                        java.lang.String type)
        Instantiate.
        Parameters:
        qualifier - Qualifier. May be null.
        type - Type.
      • AutoWire

        public AutoWire​(java.lang.String type)
        Instantiate with only type.
        Parameters:
        type - Type.
      • AutoWire

        public AutoWire​(java.lang.Class<? extends java.lang.annotation.Annotation> qualifier,
                        java.lang.Class<?> type)
        Instantiate.
        Parameters:
        qualifier - Qualifier Annotation.
        type - Type.
      • AutoWire

        public AutoWire​(java.lang.String qualifier,
                        java.lang.Class<?> type)
        Instantiate.
        Parameters:
        qualifier - Qualifier.
        type - Type.
      • AutoWire

        public AutoWire​(java.lang.Class<?> type)
        Instantiate.
        Parameters:
        type - Type.
    • Method Detail

      • getQualifier

        public java.lang.String getQualifier()
        Obtains the qualifier.
        Returns:
        Qualifier. May be null.
      • getType

        public java.lang.String getType()
        Obtains the type.
        Returns:
        Type.
      • getTypeClass

        public java.lang.Class<?> getTypeClass​(SourceContext sourceContext)
        Obtains the type.
        Parameters:
        sourceContext - SourceContext.
        Returns:
        Type Class or null if unable to retrieve.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • compareTo

        public int compareTo​(AutoWire that)
        Specified by:
        compareTo in interface java.lang.Comparable<AutoWire>