public class MethodInjectionPoint<T,X> extends AbstractCallableInjectionPoint<T,X,Method>
| Modifier | Constructor and Description |
|---|---|
protected |
MethodInjectionPoint(EnhancedAnnotatedMethod<T,X> enhancedMethod,
Bean<?> declaringBean,
Class<?> declaringComponentClass,
boolean observerOrDisposer,
InjectionPointFactory factory,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
AnnotatedMethod<X> |
getAnnotated()
Obtain an instance of
AnnotatedField or
AnnotatedParameter, depending upon whether the injection point is an injected field
or a constructor/method parameter. |
protected Object[] |
getParameterValues(Class<? extends Annotation> specialParam,
Object specialVal,
BeanManagerImpl manager,
CreationalContext<?> ctx,
CreationalContext<?> invocationContext)
Helper method for getting the current parameter values from a list of annotated parameters.
|
void |
inject(Object declaringInstance,
Object value)
Injects an instance
|
T |
invoke(Object declaringInstance,
BeanManagerImpl manager,
CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow) |
T |
invokeOnInstance(Object declaringInstance,
BeanManagerImpl manager,
CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow) |
T |
invokeOnInstanceWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
CreationalContext<?> ctx,
Class<? extends RuntimeException> exceptionTypeToThrow) |
T |
invokeWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
CreationalContext<?> ctx,
Class<? extends RuntimeException> exceptionTypeToThrow) |
equals, getBean, getInjectionPoints, getMember, getParameterInjectionPoints, getQualifier, getQualifiers, getType, hashCode, isDelegate, isTransient, toStringprotected MethodInjectionPoint(EnhancedAnnotatedMethod<T,X> enhancedMethod, Bean<?> declaringBean, Class<?> declaringComponentClass, boolean observerOrDisposer, InjectionPointFactory factory, BeanManagerImpl manager)
public T invoke(Object declaringInstance, BeanManagerImpl manager, CreationalContext<?> creationalContext, Class<? extends RuntimeException> exceptionTypeToThrow)
public T invokeWithSpecialValue(Object declaringInstance, Class<? extends Annotation> annotatedParameter, Object parameter, BeanManagerImpl manager, CreationalContext<?> ctx, Class<? extends RuntimeException> exceptionTypeToThrow)
public T invokeOnInstance(Object declaringInstance, BeanManagerImpl manager, CreationalContext<?> creationalContext, Class<? extends RuntimeException> exceptionTypeToThrow)
public T invokeOnInstanceWithSpecialValue(Object declaringInstance, Class<? extends Annotation> annotatedParameter, Object parameter, BeanManagerImpl manager, CreationalContext<?> ctx, Class<? extends RuntimeException> exceptionTypeToThrow)
public void inject(Object declaringInstance, Object value)
WeldInjectionPointdeclaringInstance - The instance to inject intovalue - The value to injectprotected Object[] getParameterValues(Class<? extends Annotation> specialParam, Object specialVal, BeanManagerImpl manager, CreationalContext<?> ctx, CreationalContext<?> invocationContext)
parameters - The list of annotated parameter to look upmanager - The Bean managerpublic AnnotatedMethod<X> getAnnotated()
InjectionPointAnnotatedField or
AnnotatedParameter, depending upon whether the injection point is an injected field
or a constructor/method parameter.getAnnotated in interface InjectionPointgetAnnotated in class AbstractCallableInjectionPoint<T,X,Method>AnnotatedField or AnnotatedParameterCopyright © 2013 Seam Framework. All Rights Reserved.