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
|
Method Summary |
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.WeldAnnotated |
getActualTypeArguments, getBindingsAsArray, getInterfaceClosure, getJavaClass, getMetaAnnotations, getName, getPackage, getQualifiers, isFinal, isPackagePrivate, isParameterizedType, isPrimitive, 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 |
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 invokeparameters - 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 invokemanager - 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
getSignature
MethodSignature getSignature()
Copyright © 2008-2010 Seam Framework. All Rights Reserved.