org.jboss.weld.injection
Class MethodInjectionPoint<T,X>
java.lang.Object
org.jboss.weld.introspector.ForwardingAnnotated
org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
org.jboss.weld.introspector.ForwardingWeldMember<T,X,Method>
org.jboss.weld.introspector.ForwardingWeldMethod<T,X>
org.jboss.weld.injection.MethodInjectionPoint<T,X>
- All Implemented Interfaces:
- javax.enterprise.inject.spi.Annotated, javax.enterprise.inject.spi.AnnotatedCallable<X>, javax.enterprise.inject.spi.AnnotatedMember<X>, javax.enterprise.inject.spi.AnnotatedMethod<X>, javax.enterprise.inject.spi.InjectionPoint, WeldInjectionPoint<T,Method>, WeldAnnotated<T,Method>, WeldCallable<T,X,Method>, WeldMember<T,X,Method>, WeldMethod<T,X>
public class MethodInjectionPoint<T,X>
- extends ForwardingWeldMethod<T,X>
- implements WeldInjectionPoint<T,Method>
Method Summary |
protected WeldMethod<T,X> |
delegate()
|
boolean |
equals(Object obj)
|
javax.enterprise.inject.spi.Annotated |
getAnnotated()
|
javax.enterprise.inject.spi.Bean<?> |
getBean()
|
Member |
getMember()
|
protected Object[] |
getParameterValues(List<ParameterInjectionPoint<?,X>> parameters,
Class<? extends Annotation> specialParam,
Object specialVal,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Helper method for getting the current parameter values from a list of
annotated parameters. |
Set<Annotation> |
getQualifiers()
Gets the binding types for this element |
Type |
getType()
|
List<ParameterInjectionPoint<?,X>> |
getWeldParameters()
Gets the abstracted parameters of the method |
int |
hashCode()
|
void |
inject(Object declaringInstance,
Object value)
Injects an instance |
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<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow)
|
T |
invokeWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow)
|
boolean |
isDelegate()
|
boolean |
isTransient()
|
static
|
of(javax.enterprise.inject.spi.Bean<?> declaringBean,
WeldMethod<T,X> method)
|
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic |
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic |
Methods inherited from interface javax.enterprise.inject.spi.Annotated |
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember |
isStatic |
MethodInjectionPoint
protected MethodInjectionPoint(javax.enterprise.inject.spi.Bean<?> declaringBean,
WeldMethod<T,X> method)
of
public static <T,X> MethodInjectionPoint<T,X> of(javax.enterprise.inject.spi.Bean<?> declaringBean,
WeldMethod<T,X> method)
equals
public boolean equals(Object obj)
- Overrides:
equals
in class ForwardingAnnotated
hashCode
public int hashCode()
- Overrides:
hashCode
in class ForwardingAnnotated
delegate
protected WeldMethod<T,X> delegate()
- Specified by:
delegate
in class ForwardingWeldMethod<T,X>
getBean
public javax.enterprise.inject.spi.Bean<?> getBean()
- Specified by:
getBean
in interface javax.enterprise.inject.spi.InjectionPoint
getQualifiers
public Set<Annotation> getQualifiers()
- Description copied from interface:
WeldAnnotated
- Gets the binding types for this element
- Specified by:
getQualifiers
in interface javax.enterprise.inject.spi.InjectionPoint
- Specified by:
getQualifiers
in interface WeldAnnotated<T,Method>
- Overrides:
getQualifiers
in class ForwardingWeldAnnotated<T,Method>
invoke
public T invoke(Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow)
invokeWithSpecialValue
public T invokeWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow)
invokeOnInstance
public T invokeOnInstance(Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow)
invokeOnInstanceWithSpecialValue
public T invokeOnInstanceWithSpecialValue(Object declaringInstance,
Class<? extends Annotation> annotatedParameter,
Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
Class<? extends RuntimeException> exceptionTypeToThrow)
getWeldParameters
public List<ParameterInjectionPoint<?,X>> getWeldParameters()
- Description copied from interface:
WeldCallable
- Gets the abstracted parameters of the method
- Specified by:
getWeldParameters
in interface WeldCallable<T,X,Method>
- Overrides:
getWeldParameters
in class ForwardingWeldMethod<T,X>
- Returns:
- A list of parameters. Returns an empty list if no parameters are
present.
inject
public void inject(Object declaringInstance,
Object value)
- Description copied from interface:
WeldInjectionPoint
- Injects an instance
- Specified by:
inject
in interface WeldInjectionPoint<T,Method>
- Parameters:
declaringInstance
- The instance to inject intovalue
- The value to inject
getParameterValues
protected Object[] getParameterValues(List<ParameterInjectionPoint<?,X>> parameters,
Class<? extends Annotation> specialParam,
Object specialVal,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
- Helper method for getting the current parameter values from a list of
annotated parameters.
- Parameters:
parameters
- The list of annotated parameter to look upmanager
- The Bean manager
- Returns:
- The object array of looked up values
getAnnotated
public javax.enterprise.inject.spi.Annotated getAnnotated()
- Specified by:
getAnnotated
in interface javax.enterprise.inject.spi.InjectionPoint
isDelegate
public boolean isDelegate()
- Specified by:
isDelegate
in interface javax.enterprise.inject.spi.InjectionPoint
isTransient
public boolean isTransient()
- Specified by:
isTransient
in interface javax.enterprise.inject.spi.InjectionPoint
getType
public Type getType()
- Specified by:
getType
in interface javax.enterprise.inject.spi.InjectionPoint
getMember
public Member getMember()
- Specified by:
getMember
in interface javax.enterprise.inject.spi.InjectionPoint
Copyright © 2013 Seam Framework. All Rights Reserved.