Class InjectionTarget
- java.lang.Object
-
- org.apache.tomcat.util.descriptor.web.InjectionTarget
-
- All Implemented Interfaces:
java.io.Serializable
public class InjectionTarget extends java.lang.Object implements java.io.SerializableRepresents 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.StringgetTargetClass()Returns the target class name.java.lang.StringgetTargetName()Returns the target field or method name.voidsetTargetClass(java.lang.String targetClass)Sets the target class name.voidsetTargetName(java.lang.String targetName)Sets the target field or method name.
-
-
-
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 nametargetName- 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
-
-