Package org.jboss.as.ee.component
Class InjectionTarget
java.lang.Object
org.jboss.as.ee.component.InjectionTarget
- Direct Known Subclasses:
FieldInjectionTarget,MethodInjectionTarget
An injection target field or method in a class.
- Author:
- David M. Lloyd, Eduardo Martins
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedInjectionTarget(String className, String name, String declaredValueClassName) -
Method Summary
Modifier and TypeMethodDescriptionabstract org.jboss.invocation.InterceptorFactorycreateInjectionInterceptorFactory(Object targetContextKey, Object valueContextKey, org.jboss.msc.value.Value<ManagedReferenceFactory> factoryValue, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, boolean optional) Get an interceptor factory which will carry out injection into this target.booleanGet the name of the target class.Get the class name of the field or the parameter type declared for the target method.getName()Get the name of the target property.inthashCode()abstract booleanisStatic(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) Indicates if the target has the staic modifier.toString()
-
Constructor Details
-
InjectionTarget
- Parameters:
className- The class to inject intoname- The target namedeclaredValueClassName- The type of injection
-
-
Method Details
-
getName
Get the name of the target property.- Returns:
- the name
-
getClassName
Get the name of the target class.- Returns:
- the class name
-
getDeclaredValueClassName
Get the class name of the field or the parameter type declared for the target method.- Returns:
- the class name
-
createInjectionInterceptorFactory
public abstract org.jboss.invocation.InterceptorFactory createInjectionInterceptorFactory(Object targetContextKey, Object valueContextKey, org.jboss.msc.value.Value<ManagedReferenceFactory> factoryValue, org.jboss.as.server.deployment.DeploymentUnit deploymentUnit, boolean optional) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException Get an interceptor factory which will carry out injection into this target.- Parameters:
targetContextKey- the interceptor context key for the targetvalueContextKey- the interceptor context key for the valuefactoryValue- the value to injectdeploymentUnit- the deployment unitoptional- If this is an optional injection- Returns:
- the interceptor factory
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException- if an error occurs
-
isStatic
public abstract boolean isStatic(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException Indicates if the target has the staic modifier.- Parameters:
deploymentUnit- the deployment unit- Returns:
- true
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException- if an error occurs
-
equals
-
hashCode
public int hashCode() -
toString
-