org.jboss.weld.introspector
Interface WeldMethod<T,X>

All Superinterfaces:
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>
All Known Implementing Classes:
ForwardingWeldMethod, MethodInjectionPoint, WeldMethodImpl

public interface WeldMethod<T,X>
extends WeldCallable<T,X,Method>, javax.enterprise.inject.spi.AnnotatedMethod<X>

AnnotatedType provides a uniform access to the annotations on an annotated class defined either in Java or XML

Author:
Pete Muir

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
 
Method Summary
 Class<?>[] getParameterTypesAsArray()
          Get the parameter types as an array
 String getPropertyName()
          Gets the property name
 MethodSignature getSignature()
           
 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 interface org.jboss.weld.introspector.WeldCallable
getWeldParameters, getWeldParameters
 
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.AnnotatedMethod
getJavaMember
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedCallable
getParameters
 
Methods inherited from interface javax.enterprise.inject.spi.AnnotatedMember
isStatic
 
Methods inherited from interface javax.enterprise.inject.spi.Annotated
getAnnotation, getAnnotations, getBaseType, getTypeClosure, isAnnotationPresent
 

Method Detail

getParameterTypesAsArray

Class<?>[] getParameterTypesAsArray()
Get the parameter types as an array


invoke

T invoke(Object instance,
         Object... parameters)
         throws IllegalArgumentException,
                IllegalAccessException,
                InvocationTargetException
Invokes the method

Parameters:
instance - The instance to invoke
parameters - The method parameters
Returns:
A reference to the instance
Throws:
IllegalArgumentException
IllegalAccessException
InvocationTargetException

invokeOnInstance

T invokeOnInstance(Object instance,
                   Object... parameters)
                   throws IllegalArgumentException,
                          SecurityException,
                          IllegalAccessException,
                          InvocationTargetException,
                          NoSuchMethodException
Invokes the method on the class of the passed instance, not the declaring class. Useful with proxies

Parameters:
instance - The instance to invoke
manager - The Bean manager
Returns:
A reference to the instance
Throws:
IllegalArgumentException
SecurityException
IllegalAccessException
InvocationTargetException
NoSuchMethodException

getPropertyName

String getPropertyName()
Gets the property name

Returns:
The name

isEquivalent

boolean isEquivalent(Method method)
Checks if a this is equivalent to a JLR method

Parameters:
method - The JLR method
Returns:
true if equivalent

getSignature

MethodSignature getSignature()


Copyright © 2013 Seam Framework. All Rights Reserved.