Class InjectionTarget
java.lang.Object
org.apache.tomcat.util.descriptor.web.InjectionTarget
- All Implemented Interfaces:
Serializable
Represents a target for dependency injection. Defines the class and field/method to inject into.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new injection target with no initial values.InjectionTarget(String targetClass, String targetName) Creates a new injection target with the specified class and name. -
Method Summary
Modifier and TypeMethodDescriptionReturns the target class name.Returns the target field or method name.voidsetTargetClass(String targetClass) Sets the target class name.voidsetTargetName(String targetName) Sets the target field or method name.
-
Constructor Details
-
InjectionTarget
public InjectionTarget()Creates a new injection target with no initial values. -
InjectionTarget
-
-
Method Details
-
getTargetClass
-
setTargetClass
Sets the target class name.- Parameters:
targetClass- the target class name
-
getTargetName
-
setTargetName
Sets the target field or method name.- Parameters:
targetName- the target name
-