T - the return type of the methodX - the type of the class that declared the methodpublic abstract class MethodInjectionPoint<T,X> extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
MethodInjectionPoint.MethodInjectionPointType |
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
hasTransientReferenceParameter |
protected MethodInjectionPoint.MethodInjectionPointType |
type |
| Modifier | Constructor and Description |
|---|---|
protected |
MethodInjectionPoint(MethodInjectionPoint.MethodInjectionPointType methodInjectionPointType,
EnhancedAnnotatedCallable<T,X,Method> callable,
javax.enterprise.inject.spi.Bean<?> declaringBean,
Class<?> declaringComponentClass,
InjectionPointFactory factory,
BeanManagerImpl manager) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
abstract 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() |
<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() |
abstract T |
invoke(Object receiver,
Object specialValue,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> ctx,
Class<? extends RuntimeException> exceptionTypeToThrow)
Invokes the method.
|
boolean |
isDelegate() |
boolean |
isTransient() |
String |
toString() |
protected MethodInjectionPoint.MethodInjectionPointType type
protected final boolean hasTransientReferenceParameter
protected MethodInjectionPoint(MethodInjectionPoint.MethodInjectionPointType methodInjectionPointType, EnhancedAnnotatedCallable<T,X,Method> callable, javax.enterprise.inject.spi.Bean<?> declaringBean, Class<?> declaringComponentClass, InjectionPointFactory factory, BeanManagerImpl manager)
public abstract T invoke(Object receiver, Object specialValue, BeanManagerImpl manager, javax.enterprise.context.spi.CreationalContext<?> ctx, Class<? extends 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 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 © 2017. All rights reserved.