Class InjectionTarget

  • All Implemented Interfaces:
    java.io.Serializable

    public class InjectionTarget
    extends java.lang.Object
    implements java.io.Serializable
    Represents a target for dependency injection. Defines the class and field/method to inject into.
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      InjectionTarget()
      Creates a new injection target with no initial values.
      InjectionTarget​(java.lang.String targetClass, java.lang.String targetName)
      Creates a new injection target with the specified class and name.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getTargetClass()
      Returns the target class name.
      java.lang.String getTargetName()
      Returns the target field or method name.
      void setTargetClass​(java.lang.String targetClass)
      Sets the target class name.
      void setTargetName​(java.lang.String targetName)
      Sets the target field or method name.
      • Methods inherited from class java.lang.Object

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

      • InjectionTarget

        public InjectionTarget()
        Creates a new injection target with no initial values.
      • InjectionTarget

        public InjectionTarget​(java.lang.String targetClass,
                               java.lang.String targetName)
        Creates a new injection target with the specified class and name.
        Parameters:
        targetClass - the target class name
        targetName - the target field or method name
    • Method Detail

      • getTargetClass

        public java.lang.String getTargetClass()
        Returns the target class name.
        Returns:
        the target class name
      • setTargetClass

        public void setTargetClass​(java.lang.String targetClass)
        Sets the target class name.
        Parameters:
        targetClass - the target class name
      • getTargetName

        public java.lang.String getTargetName()
        Returns the target field or method name.
        Returns:
        the target name
      • setTargetName

        public void setTargetName​(java.lang.String targetName)
        Sets the target field or method name.
        Parameters:
        targetName - the target name