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,java.lang.reflect.Method>, WeldCallable<T,X,java.lang.reflect.Method>, WeldMember<T,X,java.lang.reflect.Method>
All Known Implementing Classes:
ForwardingWeldMethod, MethodInjectionPoint, WeldMethodImpl

public interface WeldMethod<T,X>
extends WeldCallable<T,X,java.lang.reflect.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
static java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> MAPPED_PARAMETER_ANNOTATIONS
           
 
Fields inherited from interface org.jboss.weld.introspector.WeldAnnotated
MAPPED_METAANNOTATIONS
 
Method Summary
 java.lang.reflect.Method getAnnotatedMethod()
           
 java.lang.Class<?>[] getParameterTypesAsArray()
          Get the parameter types as an array
 java.lang.String getPropertyName()
          Gets the property name
 MethodSignature getSignature()
           
 T invoke(java.lang.Object instance, java.lang.Object... parameters)
          Invokes the method
 T invokeOnInstance(java.lang.Object instance, java.lang.Object... parameters)
          Invokes the method on the class of the passed instance, not the declaring class.
 boolean isEquivalent(java.lang.reflect.Method method)
          Checks if a this is equivalent to a JLR method
 
Methods inherited from interface org.jboss.weld.introspector.WeldCallable
getAnnotatedWBParameters, getWBParameters
 
Methods inherited from interface org.jboss.weld.introspector.WeldMember
getDeclaringType, getJavaMember
 
Methods inherited from interface org.jboss.weld.introspector.WeldAnnotated
getActualTypeArguments, getBindingsAsArray, getDeclaredMetaAnnotations, getInterfaceOnlyFlattenedTypeHierarchy, getJavaClass, getMetaAnnotations, getMetaAnnotationsAsArray, getName, getPackage, getQualifiers, isDeclaredAnnotationPresent, isFinal, isPackagePrivate, isParameterizedType, isPrivate, isProxyable, 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
 

Field Detail

MAPPED_PARAMETER_ANNOTATIONS

static final java.util.Set<java.lang.Class<? extends java.lang.annotation.Annotation>> MAPPED_PARAMETER_ANNOTATIONS
Method Detail

getParameterTypesAsArray

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


invoke

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

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

invokeOnInstance

T invokeOnInstance(java.lang.Object instance,
                   java.lang.Object... parameters)
                   throws java.lang.IllegalArgumentException,
                          java.lang.SecurityException,
                          java.lang.IllegalAccessException,
                          java.lang.reflect.InvocationTargetException,
                          java.lang.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:
java.lang.IllegalArgumentException
java.lang.SecurityException
java.lang.IllegalAccessException
java.lang.reflect.InvocationTargetException
java.lang.NoSuchMethodException

getPropertyName

java.lang.String getPropertyName()
Gets the property name

Returns:
The name

isEquivalent

boolean isEquivalent(java.lang.reflect.Method method)
Checks if a this is equivalent to a JLR method

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

getAnnotatedMethod

java.lang.reflect.Method getAnnotatedMethod()

getSignature

MethodSignature getSignature()


Copyright © 2008-2009 Seam Framework. All Rights Reserved.