org.jboss.weld.injection
Class MethodInjectionPoint<T,X>
java.lang.Object
org.jboss.weld.introspector.ForwardingAnnotated<T,S>
org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
org.jboss.weld.introspector.ForwardingWeldMember<T,X,java.lang.reflect.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,java.lang.reflect.Method>, WeldAnnotated<T,java.lang.reflect.Method>, WeldCallable<T,X,java.lang.reflect.Method>, WeldMember<T,X,java.lang.reflect.Method>, WeldMethod<T,X>
public class MethodInjectionPoint<T,X>
- extends ForwardingWeldMethod<T,X>
- implements WeldInjectionPoint<T,java.lang.reflect.Method>
|
Method Summary |
protected WeldMethod<T,X> |
delegate()
|
javax.enterprise.inject.spi.Annotated |
getAnnotated()
|
javax.enterprise.inject.spi.Bean<?> |
getBean()
|
java.lang.reflect.Member |
getMember()
|
protected java.lang.Object[] |
getParameterValues(java.util.List<ParameterInjectionPoint<?,X>> parameters,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
java.lang.Object specialVal,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext)
Helper method for getting the current parameter values from a list of
annotated parameters. |
java.util.Set<java.lang.annotation.Annotation> |
getQualifiers()
Gets the binding types for this element |
java.lang.reflect.Type |
getType()
|
java.util.List<ParameterInjectionPoint<?,X>> |
getWBParameters()
Gets the abstracted parameters of the method |
void |
inject(java.lang.Object declaringInstance,
java.lang.Object value)
Injects an instance |
T |
invoke(java.lang.Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
|
T |
invokeOnInstance(java.lang.Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
|
T |
invokeOnInstanceWithSpecialValue(java.lang.Object declaringInstance,
java.lang.Class<? extends java.lang.annotation.Annotation> annotatedParameter,
java.lang.Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
|
T |
invokeWithSpecialValue(java.lang.Object declaringInstance,
java.lang.Class<? extends java.lang.annotation.Annotation> annotatedParameter,
java.lang.Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.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, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, isPublic, isStatic |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, isPublic, isStatic |
| Methods inherited from interface javax.enterprise.inject.spi.Annotated |
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent |
| Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMethod |
getJavaMember |
| 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)
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 java.util.Set<java.lang.annotation.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,java.lang.reflect.Method>- Overrides:
getQualifiers in class ForwardingWeldAnnotated<T,java.lang.reflect.Method>
invoke
public T invoke(java.lang.Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
invokeWithSpecialValue
public T invokeWithSpecialValue(java.lang.Object declaringInstance,
java.lang.Class<? extends java.lang.annotation.Annotation> annotatedParameter,
java.lang.Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
invokeOnInstance
public T invokeOnInstance(java.lang.Object declaringInstance,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
invokeOnInstanceWithSpecialValue
public T invokeOnInstanceWithSpecialValue(java.lang.Object declaringInstance,
java.lang.Class<? extends java.lang.annotation.Annotation> annotatedParameter,
java.lang.Object parameter,
BeanManagerImpl manager,
javax.enterprise.context.spi.CreationalContext<?> creationalContext,
java.lang.Class<? extends java.lang.RuntimeException> exceptionTypeToThrow)
getWBParameters
public java.util.List<ParameterInjectionPoint<?,X>> getWBParameters()
- Description copied from interface:
WeldCallable
- Gets the abstracted parameters of the method
- Specified by:
getWBParameters in interface WeldCallable<T,X,java.lang.reflect.Method>- Overrides:
getWBParameters in class ForwardingWeldMethod<T,X>
- Returns:
- A list of parameters. Returns an empty list if no parameters are
present.
inject
public void inject(java.lang.Object declaringInstance,
java.lang.Object value)
- Description copied from interface:
WeldInjectionPoint
- Injects an instance
- Specified by:
inject in interface WeldInjectionPoint<T,java.lang.reflect.Method>
- Parameters:
declaringInstance - The instance to inject intovalue - The value to inject
getParameterValues
protected java.lang.Object[] getParameterValues(java.util.List<ParameterInjectionPoint<?,X>> parameters,
java.lang.Class<? extends java.lang.annotation.Annotation> specialParam,
java.lang.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 java.lang.reflect.Type getType()
- Specified by:
getType in interface javax.enterprise.inject.spi.InjectionPoint
getMember
public java.lang.reflect.Member getMember()
- Specified by:
getMember in interface javax.enterprise.inject.spi.InjectionPoint
Copyright © 2008-2009 Seam Framework. All Rights Reserved.