Package org.jboss.as.ee.component
Class MethodInjectionTarget
- java.lang.Object
-
- org.jboss.as.ee.component.InjectionTarget
-
- org.jboss.as.ee.component.MethodInjectionTarget
-
public final class MethodInjectionTarget extends InjectionTarget
- Author:
- David M. Lloyd, Eduardo Martins
-
-
Constructor Summary
Constructors Constructor Description MethodInjectionTarget(String className, String name, String paramType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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)
Get an interceptor factory which will carry out injection into this target.Method
getMethod(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
Method
getMethod(org.jboss.as.server.deployment.reflect.DeploymentReflectionIndex reflectionIndex, Class<?> clazz)
boolean
isStatic(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit)
Indicates if the target has the staic modifier.-
Methods inherited from class org.jboss.as.ee.component.InjectionTarget
equals, getClassName, getDeclaredValueClassName, getName, hashCode, toString
-
-
-
-
Method Detail
-
isStatic
public boolean isStatic(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
Description copied from class:InjectionTarget
Indicates if the target has the staic modifier.- Specified by:
isStatic
in classInjectionTarget
- Parameters:
deploymentUnit
- the deployment unit- Returns:
- true
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
- if an error occurs
-
createInjectionInterceptorFactory
public 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
Description copied from class:InjectionTarget
Get an interceptor factory which will carry out injection into this target.- Specified by:
createInjectionInterceptorFactory
in classInjectionTarget
- 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
-
getMethod
public Method getMethod(org.jboss.as.server.deployment.DeploymentUnit deploymentUnit) throws org.jboss.as.server.deployment.DeploymentUnitProcessingException
- Throws:
org.jboss.as.server.deployment.DeploymentUnitProcessingException
-
-