public class MethodInjectionPoint<T,X> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
MethodInjectionPoint(EnhancedAnnotatedMethod<T,X> enhancedMethod,
javax.enterprise.inject.spi.Bean<?> declaringBean,
Class<?> declaringComponentClass,
boolean observerOrDisposer,
InjectionPointFactory factory,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
javax.enterprise.inject.spi.AnnotatedMethod<X> |
getAnnotated() |
javax.enterprise.inject.spi.Bean<?> |
getBean() |
Set<javax.enterprise.inject.spi.InjectionPoint> |
getInjectionPoints()
Returns a set of
InjectionPoint instances of this constructor/method. |
Member |
getMember() |
List<ParameterInjectionPoint<?,X>> |
getParameterInjectionPoints() |
protected Object[] |
getParameterValues(Class<? extends Annotation> specialParam,
Object specialVal,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> ctx,
javax.enterprise.context.spi.CreationalContext<?> invocationContext)
Helper method for getting the current parameter values from a list of annotated parameters.
|
<A extends Annotation> |
getQualifier(Class<A> annotationType)
Returns an instance of a given qualifier annotation or null if a given qualifier is not present on the injection point.
|
Set<Annotation> |
getQualifiers() |
Type |
getType() |
int |
hashCode() |
T |
invoke(Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow) |
T |
invokeOnInstance(Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow) |
T |
invokeOnInstanceWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> ctx,
Class<? extends RuntimeException> exceptionTypeToThrow) |
T |
invokeWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> ctx,
Class<? extends RuntimeException> exceptionTypeToThrow) |
boolean |
isDelegate() |
boolean |
isTransient() |
String |
toString() |
protected MethodInjectionPoint(EnhancedAnnotatedMethod<T,X> enhancedMethod, javax.enterprise.inject.spi.Bean<?> declaringBean, Class<?> declaringComponentClass, boolean observerOrDisposer, InjectionPointFactory factory, BeanManagerImpl manager)
public T invoke(Object declaringInstance, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> creationalContext, Class<? extends RuntimeException> exceptionTypeToThrow)
public T invokeWithSpecialValue(Object declaringInstance, Class<? extends Annotation> annotatedParameter, Object parameter, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> ctx, Class<? extends RuntimeException> exceptionTypeToThrow)
public T invokeOnInstance(Object declaringInstance, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> creationalContext, Class<? extends RuntimeException> exceptionTypeToThrow)
public T invokeOnInstanceWithSpecialValue(Object declaringInstance, Class<? extends Annotation> annotatedParameter, Object parameter, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> ctx, Class<? extends RuntimeException> exceptionTypeToThrow)
protected Object[] getParameterValues(Class<? extends Annotation> specialParam, Object specialVal, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> ctx, javax.enterprise.context.spi.CreationalContext<?> invocationContext)
parameters - The list of annotated parameter to look upmanager - The Bean managerpublic javax.enterprise.inject.spi.AnnotatedMethod<X> getAnnotated()
getAnnotated in interface javax.enterprise.inject.spi.InjectionPointpublic Type getType()
getType in interface javax.enterprise.inject.spi.InjectionPointpublic Set<Annotation> getQualifiers()
getQualifiers in interface javax.enterprise.inject.spi.InjectionPointpublic javax.enterprise.inject.spi.Bean<?> getBean()
getBean in interface javax.enterprise.inject.spi.InjectionPointpublic boolean isDelegate()
isDelegate in interface javax.enterprise.inject.spi.InjectionPointpublic boolean isTransient()
isTransient in interface javax.enterprise.inject.spi.InjectionPointpublic <A extends Annotation> A getQualifier(Class<A> annotationType)
WeldInjectionPointAttributesgetQualifier in interface WeldInjectionPointAttributes<T,S extends Member>public Member getMember()
getMember in interface javax.enterprise.inject.spi.InjectionPointpublic List<ParameterInjectionPoint<?,X>> getParameterInjectionPoints()
public Set<javax.enterprise.inject.spi.InjectionPoint> getInjectionPoints()
InjectionPoint instances of this constructor/method. This set never contains a
SpecialParameterInjectionPoint and is therefore suitable for use outside of Weld. The returned set
is immutable.Copyright © 2016. All rights reserved.