Package org.jboss.weld.injection
Class MethodInjectionPoint<T,X>
java.lang.Object
org.jboss.weld.injection.MethodInjectionPoint<T,X>
- Type Parameters:
T- the return type of the methodX- the type of the class that declared the method
- All Implemented Interfaces:
jakarta.enterprise.inject.spi.InjectionPoint,WeldInjectionPointAttributes<T,Method>
Wraps a method whose parameters may be injected.
- Author:
- Jozef Hartinger
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMethodInjectionPoint(MethodInjectionPoint.MethodInjectionPointType methodInjectionPointType, EnhancedAnnotatedCallable<T, X, Method> callable, jakarta.enterprise.inject.spi.Bean<?> declaringBean, Class<?> declaringComponentClass, InjectionPointFactory factory, BeanManagerImpl manager) -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract jakarta.enterprise.inject.spi.AnnotatedMethod<X>jakarta.enterprise.inject.spi.Bean<?>getBean()Set<jakarta.enterprise.inject.spi.InjectionPoint>Returns a set ofInjectionPointinstances of this constructor/method.<A extends Annotation>
AgetQualifier(Class<A> annotationType) Returns an instance of a given qualifier annotation or null if a given qualifier is not present on the injection point.getType()inthashCode()abstract Tinvoke(Object receiver, Object specialValue, BeanManagerImpl manager, jakarta.enterprise.context.spi.CreationalContext<?> ctx, Class<? extends RuntimeException> exceptionTypeToThrow) Invokes the method.booleanbooleantoString()
-
Field Details
-
type
-
hasTransientReferenceParameter
protected final boolean hasTransientReferenceParameter
-
-
Constructor Details
-
MethodInjectionPoint
protected MethodInjectionPoint(MethodInjectionPoint.MethodInjectionPointType methodInjectionPointType, EnhancedAnnotatedCallable<T, X, Method> callable, jakarta.enterprise.inject.spi.Bean<?> declaringBean, Class<?> declaringComponentClass, InjectionPointFactory factory, BeanManagerImpl manager)
-
-
Method Details
-
invoke
public abstract T invoke(Object receiver, Object specialValue, BeanManagerImpl manager, jakarta.enterprise.context.spi.CreationalContext<?> ctx, Class<? extends RuntimeException> exceptionTypeToThrow) Invokes the method.- Parameters:
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 within- Returns:
- the value returned from the method
-
getAnnotated
- Specified by:
getAnnotatedin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getType
- Specified by:
getTypein interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getQualifiers
- Specified by:
getQualifiersin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getBean
public jakarta.enterprise.inject.spi.Bean<?> getBean()- Specified by:
getBeanin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
isDelegate
public boolean isDelegate()- Specified by:
isDelegatein interfacejakarta.enterprise.inject.spi.InjectionPoint
-
isTransient
public boolean isTransient()- Specified by:
isTransientin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getQualifier
Description copied from interface:WeldInjectionPointAttributesReturns an instance of a given qualifier annotation or null if a given qualifier is not present on the injection point.- Specified by:
getQualifierin interfaceWeldInjectionPointAttributes<T,X>
-
getMember
- Specified by:
getMemberin interfacejakarta.enterprise.inject.spi.InjectionPoint
-
getParameterInjectionPoints
-
getInjectionPoints
Returns a set ofInjectionPointinstances of this constructor/method. This set never contains aSpecialParameterInjectionPointand is therefore suitable for use outside of Weld. The returned set is immutable. -
equals
-
hashCode
public int hashCode() -
toString
-