B
- The bean typeT
- The injectable typepublic interface MethodInjectionPoint<B,T> extends CallableInjectionPoint<B>, Executable<B,T>
EMPTY
Modifier and Type | Method and Description |
---|---|
default Class<B> |
getDeclaringType() |
Method |
getMethod()
Resolves the
Method instance. |
String |
getName() |
T |
invoke(B instance,
Object... args)
Invokes the method.
|
boolean |
isPostConstructMethod() |
boolean |
isPreDestroyMethod() |
getArguments
getDeclaringBean, requiresReflection
findAnnotation, findAnnotation, findDeclaredAnnotation, findDeclaredAnnotation, getAnnotationMetadata, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeAll, synthesizeAnnotationsByType, synthesizeDeclared, synthesizeDeclared, synthesizeDeclaredAnnotationsByType
getAnnotation, getAnnotation, getDeclaredAnnotation, getDeclaredAnnotation, isAnnotationPresent, isDeclaredAnnotationPresent, synthesize, synthesizeDeclared
getArguments
Method getMethod()
Method
instance. Note that this method will cause reflection
metadata to be initialized and should be avoided.String getName()
boolean isPreDestroyMethod()
boolean isPostConstructMethod()
T invoke(B instance, Object... args)
invoke
in interface Executable<B,T>
instance
- The instanceargs
- The arguments. Should match the types of getArguments()default Class<B> getDeclaringType()
getDeclaringType
in interface Executable<B,T>