T - the return type of the methodX - the type of the class that declared the methodpublic abstract class MethodInjectionPoint<T,X>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasTransientReferenceParameter |
| Modifier | Constructor and Description |
|---|---|
protected |
MethodInjectionPoint(EnhancedAnnotatedCallable<T,X,java.lang.reflect.Method> callable,
Bean<?> declaringBean,
java.lang.Class<?> declaringComponentClass,
boolean observerOrDisposer,
InjectionPointFactory factory,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
abstract 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. |
Bean<?> |
getBean()
Get the
Bean object representing the bean that defines the injection point. |
java.util.Set<InjectionPoint> |
getInjectionPoints()
Returns a set of
InjectionPoint instances of this constructor/method. |
java.lang.reflect.Member |
getMember()
Get the
Field object in the case of field injection, the Method
object in the case of method parameter injection or the Constructor object in the case of
constructor parameter injection. |
java.util.List<ParameterInjectionPoint<?,X>> |
getParameterInjectionPoints() |
<A extends java.lang.annotation.Annotation> |
getQualifier(java.lang.Class<A> annotationType)
Returns an instance of a given qualifier annotation or null if a given qualifier is not present on the injection point.
|
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Get the required qualifiers of the injection point.
|
java.lang.reflect.Type |
getType()
Get the required type of injection point.
|
int |
hashCode() |
abstract T |
invoke(java.lang.Object receiver,
java.lang.Object specialValue,
BeanManagerImpl manager,
CreationalContext<?> ctx,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
Invokes the method.
|
boolean |
isDelegate()
Determines if the injection point is a decorator delegate injection point.
|
boolean |
isTransient()
Determines if the injection is a transient field.
|
java.lang.String |
toString() |
protected MethodInjectionPoint(EnhancedAnnotatedCallable<T,X,java.lang.reflect.Method> callable, Bean<?> declaringBean, java.lang.Class<?> declaringComponentClass, boolean observerOrDisposer, InjectionPointFactory factory, BeanManagerImpl manager)
public abstract T invoke(java.lang.Object receiver, java.lang.Object specialValue, BeanManagerImpl manager, CreationalContext<?> ctx, java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
receiver - the instance to receive the method invocation or null if this is a static methodspecialValue - value to be passed to the special parameter (observer or disposer parameter) or null if the method is not an observer or disposermanager - the bean managerctx - the creational contextexceptionTypeToThrow - exception type to be used to wrap potential exceptions withinpublic abstract AnnotatedMethod<X> getAnnotated()
InjectionPointAnnotatedField or
AnnotatedParameter, depending upon whether the injection point is an injected field
or a constructor/method parameter.getAnnotated in interface InjectionPointAnnotatedField or AnnotatedParameterpublic java.lang.reflect.Type getType()
InjectionPointgetType in interface InjectionPointpublic java.util.Set<java.lang.annotation.Annotation> getQualifiers()
InjectionPointgetQualifiers in interface InjectionPointpublic Bean<?> getBean()
InjectionPointBean object representing the bean that defines the injection point. If the
injection point does not belong to a bean, return a null value.getBean in interface InjectionPointBean object representing bean that defines the injection point, of null
if the injection point does not belong to a beanpublic boolean isDelegate()
InjectionPointisDelegate in interface InjectionPointpublic boolean isTransient()
InjectionPointisTransient in interface InjectionPointpublic <A extends java.lang.annotation.Annotation> A getQualifier(java.lang.Class<A> annotationType)
WeldInjectionPointAttributesgetQualifier in interface WeldInjectionPointAttributes<T,S extends java.lang.reflect.Member>public java.lang.reflect.Member getMember()
InjectionPointField object in the case of field injection, the Method
object in the case of method parameter injection or the Constructor object in the case of
constructor parameter injection.getMember in interface InjectionPointpublic java.util.List<ParameterInjectionPoint<?,X>> getParameterInjectionPoints()
public java.util.Set<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.public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright © 2015. All Rights Reserved.