T
- The target typeR
- The result typepublic interface ExecutionHandle<T,R> extends AnnotationMetadataDelegate
Represents a handle to an executable object. Differs from Executable
in that the
first argument to invoke(Object...)
is not the object instead the object is typically held within the
handle itself.
Executable handles are also applicable to constructors and static methods
CLASS_NAME_SUFFIX, EMPTY_METADATA, VALUE_MEMBER
EMPTY
Modifier and Type | Method and Description |
---|---|
Argument[] |
getArguments() |
Class |
getDeclaringType() |
T |
getTarget()
The target of the method invocation.
|
R |
invoke(Object... arguments)
Invokes the method.
|
static <T2,R2> MethodExecutionHandle<T2,R2> |
of(T2 bean,
ExecutableMethod<T2,R2> method)
Creates an
ExecutionHandle for the give bean and method. |
booleanValue, booleanValue, booleanValue, booleanValue, classValue, classValue, classValue, classValue, classValues, classValues, classValues, classValues, doubleValue, doubleValue, doubleValue, enumValue, enumValue, enumValue, enumValue, findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotation, getAnnotation, getAnnotationNameByStereotype, getAnnotationNameByStereotype, getAnnotationNames, getAnnotationNamesByStereotype, getAnnotationNamesByStereotype, getAnnotationType, getAnnotationTypeByStereotype, getAnnotationTypeByStereotype, getAnnotationTypesByStereotype, getAnnotationValuesByType, getDeclaredAnnotation, getDeclaredAnnotation, getDeclaredAnnotationNameByStereotype, getDeclaredAnnotationNames, getDeclaredAnnotationNamesByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationTypeByStereotype, getDeclaredAnnotationValuesByType, getDefaultValue, getDefaultValue, getDefaultValue, getDefaultValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValues, getValues, hasAnnotation, hasAnnotation, hasDeclaredAnnotation, hasDeclaredAnnotation, hasDeclaredStereotype, hasDeclaredStereotype, hasDeclaredStereotype, hasStereotype, hasStereotype, hasStereotype, hasStereotype, intValue, intValue, intValue, isAnnotationPresent, isDeclaredAnnotationPresent, isEmpty, isFalse, isFalse, isPresent, isPresent, isTrue, isTrue, longValue, longValue, stringValue, stringValue, stringValue, stringValue, stringValues, stringValues, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotationMetadata
T getTarget()
Class getDeclaringType()
Argument[] getArguments()
R invoke(Object... arguments)
arguments
- The argumentsstatic <T2,R2> MethodExecutionHandle<T2,R2> of(T2 bean, ExecutableMethod<T2,R2> method)
ExecutionHandle
for the give bean and method.T2
- The bean typeR2
- The method return typebean
- The beanmethod
- The method