public class InjectionTarget extends Object implements Serializable
| Constructor and Description |
|---|
InjectionTarget() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getClassName()
Gets the class name that is being injected into
|
Field |
getField()
Gets the field that is being injected into
|
String |
getFieldName()
Gets the name of the field that is being injected into
|
MetadataSource |
getMetadataSource() |
Method |
getMethod() |
String |
getMethodName()
Inject method name is the actual java method name of the setter method,
not the bean property name.
|
String |
getTargetName()
This is the form used by the .xml injection-group elements to
represent the target of injection.
|
int |
hashCode() |
boolean |
isFieldInjectable()
Returns true if the field can be injected into
|
boolean |
isMethodInjectable()
Returns true if method can be injected into
|
void |
setClassName(String className)
Sets the class name that is being injected into
|
void |
setField(Field field)
Sets the field that is being injected into
|
void |
setFieldName(String fieldName)
Sets the name of the field that is being injected into
|
void |
setMetadataSource(MetadataSource metadataSource)
Sets where the information about the injection is coming from
|
void |
setMethod(Method method) |
void |
setMethodName(String methodName) |
void |
setTargetName(String targetName)
Sets the name of that is being injected into
|
public boolean isFieldInjectable()
public boolean isMethodInjectable()
public String getClassName()
public void setClassName(String className)
className - public String getTargetName()
public void setTargetName(String targetName)
targetName - setFieldName(String),
setMethodName(String)public String getFieldName()
public void setFieldName(String fieldName)
fieldName - public Field getField()
public void setField(Field field)
field - public String getMethodName()
public void setMethodName(String methodName)
public Method getMethod()
public void setMethod(Method method)
public MetadataSource getMetadataSource()
public void setMetadataSource(MetadataSource metadataSource)
metadataSource - XML, ANNOTATION or PROGRAMMATICCopyright © 2019. All rights reserved.