org.jboss.weld.introspector
Class ForwardingWeldMethod<T,X>

java.lang.Object
  extended by org.jboss.weld.introspector.ForwardingAnnotated
      extended by org.jboss.weld.introspector.ForwardingWeldAnnotated<T,S>
          extended by org.jboss.weld.introspector.ForwardingWeldMember<T,X,Method>
              extended by org.jboss.weld.introspector.ForwardingWeldMethod<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>, WeldAnnotated<T,Method>, WeldCallable<T,X,Method>, WeldMember<T,X,Method>, WeldMethod<T,X>
Direct Known Subclasses:
MethodInjectionPoint

public abstract class ForwardingWeldMethod<T,X>
extends ForwardingWeldMember<T,X,Method>
implements WeldMethod<T,X>


Field Summary
 
Fields inherited from interface org.jboss.weld.introspector.WeldCallable
MAPPED_PARAMETER_ANNOTATIONS
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_DECLARED_METAANNOTATIONS, MAPPED_METAANNOTATIONS
 
Constructor Summary
ForwardingWeldMethod()
           
 
Method Summary
protected abstract  WeldMethod<T,X> delegate()
           
 List<WeldParameter<?,X>> getAnnotatedParameters(Class<? extends Annotation> metaAnnotationType)
           
 Method getJavaMember()
           
 List<javax.enterprise.inject.spi.AnnotatedParameter<X>> getParameters()
           
 Class<?>[] getParameterTypesAsArray()
          Get the parameter types as an array
 String getPropertyName()
          Gets the property name
 MethodSignature getSignature()
           
 List<? extends WeldParameter<?,X>> getWeldParameters()
          Gets the abstracted parameters of the method
 List<WeldParameter<?,X>> getWeldParameters(Class<? extends Annotation> metaAnnotationType)
          Gets the list of annotated parameters for a given annotation
 T invoke(Object instance, Object... parameters)
          Invokes the method
 T invokeOnInstance(Object instance, Object... parameters)
          Invokes the method on the class of the passed instance, not the declaring class.
 boolean isEquivalent(Method method)
          Checks if a this is equivalent to a JLR method
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldMember
getDeclaringType
 
Methods inherited from class org.jboss.weld.introspector.ForwardingWeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from class org.jboss.weld.introspector.ForwardingAnnotated
equals, getAnnotation, getAnnotations, getBaseType, getTypeClosure, hashCode, isAnnotationPresent, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jboss.weld.introspector.WeldMember
getDeclaringType
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isGeneric, isPackagePrivate, isParameterizedType, isPrimitive, isPrivate, isPublic, isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Constructor Detail

ForwardingWeldMethod

public ForwardingWeldMethod()
Method Detail

delegate

protected abstract WeldMethod<T,X> delegate()
Specified by:
delegate in class ForwardingWeldMember<T,X,Method>

getAnnotatedParameters

public List<WeldParameter<?,X>> getAnnotatedParameters(Class<? extends Annotation> metaAnnotationType)

getParameterTypesAsArray

public Class<?>[] getParameterTypesAsArray()
Description copied from interface: WeldMethod
Get the parameter types as an array

Specified by:
getParameterTypesAsArray in interface WeldMethod<T,X>

getWeldParameters

public List<? extends WeldParameter<?,X>> getWeldParameters()
Description copied from interface: WeldCallable
Gets the abstracted parameters of the method

Specified by:
getWeldParameters in interface WeldCallable<T,X,Method>
Returns:
A list of parameters. Returns an empty list if no parameters are present.

getPropertyName

public String getPropertyName()
Description copied from interface: WeldMethod
Gets the property name

Specified by:
getPropertyName in interface WeldMethod<T,X>
Returns:
The name

invoke

public T invoke(Object instance,
                Object... parameters)
         throws IllegalArgumentException,
                IllegalAccessException,
                InvocationTargetException
Description copied from interface: WeldMethod
Invokes the method

Specified by:
invoke in interface WeldMethod<T,X>
Parameters:
instance - The instance to invoke
parameters - The method parameters
Returns:
A reference to the instance
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

invokeOnInstance

public T invokeOnInstance(Object instance,
                          Object... parameters)
                   throws IllegalArgumentException,
                          SecurityException,
                          IllegalAccessException,
                          InvocationTargetException,
                          NoSuchMethodException
Description copied from interface: WeldMethod
Invokes the method on the class of the passed instance, not the declaring class. Useful with proxies

Specified by:
invokeOnInstance in interface WeldMethod<T,X>
Parameters:
instance - The instance to invoke
Returns:
A reference to the instance
Throws:
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException

isEquivalent

public boolean isEquivalent(Method method)
Description copied from interface: WeldMethod
Checks if a this is equivalent to a JLR method

Specified by:
isEquivalent in interface WeldMethod<T,X>
Parameters:
method - The JLR method
Returns:
true if equivalent

getSignature

public MethodSignature getSignature()
Specified by:
getSignature in interface WeldMethod<T,X>

getWeldParameters

public List<WeldParameter<?,X>> getWeldParameters(Class<? extends Annotation> metaAnnotationType)
Description copied from interface: WeldCallable
Gets the list of annotated parameters for a given annotation

Specified by:
getWeldParameters in interface WeldCallable<T,X,Method>
Parameters:
metaAnnotationType - The annotation to match
Returns:
A set of matching parameter abstractions. Returns an empty list if there are no matches.

getParameters

public List<javax.enterprise.inject.spi.AnnotatedParameter<X>> getParameters()
Specified by:
getParameters in interface javax.enterprise.inject.spi.AnnotatedCallable<X>

getJavaMember

public Method getJavaMember()
Specified by:
getJavaMember in interface javax.enterprise.inject.spi.AnnotatedMember<X>
Specified by:
getJavaMember in interface javax.enterprise.inject.spi.AnnotatedMethod<X>


Copyright © 2013 Seam Framework. All Rights Reserved.