com.sun.enterprise.deployment
Class InjectionTarget
java.lang.Object
com.sun.enterprise.deployment.InjectionTarget
- All Implemented Interfaces:
- java.io.Serializable
public class InjectionTarget
- extends java.lang.Object
- implements java.io.Serializable
This class holds information about an injection target like the class name
of the injected target, and field/method information used for injection.
- Author:
- Jerome Dochez
- See Also:
- Serialized Form
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
InjectionTarget
public InjectionTarget()
isFieldInjectable
public boolean isFieldInjectable()
isMethodInjectable
public boolean isMethodInjectable()
getClassName
public java.lang.String getClassName()
setClassName
public void setClassName(java.lang.String className)
getTargetName
public java.lang.String getTargetName()
- This is the form used by the .xml injection-group elements to
represent the target of injection. It either represents the
javabeans property name of the injection method or the name
of the injected field. This value is set on the descriptor
during .xml processing and converted into the appropriate
field/method name during validation.
setTargetName
public void setTargetName(java.lang.String targetName)
getFieldName
public java.lang.String getFieldName()
setFieldName
public void setFieldName(java.lang.String fieldName)
getField
public java.lang.reflect.Field getField()
setField
public void setField(java.lang.reflect.Field field)
getMethodName
public java.lang.String getMethodName()
- Inject method name is the actual java method name of the setter method,
not the bean property name. E.g., for @Resource void setFoo(Bar b)
it would be "setFoo", not the property name "foo".
setMethodName
public void setMethodName(java.lang.String methodName)
getMethod
public java.lang.reflect.Method getMethod()
setMethod
public void setMethod(java.lang.reflect.Method method)
getMetadataSource
public MetadataSource getMetadataSource()
setMetadataSource
public void setMetadataSource(MetadataSource metadataSource)
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals in class java.lang.Object
hashCode
public int hashCode()
- Overrides:
hashCode in class java.lang.Object
Copyright © 2012 GlassFish Community. All Rights Reserved.