public interface ExecutionHandleLocator
ExecutionHandle instances
for beans.| Modifier and Type | Field and Description |
|---|---|
static ExecutionHandleLocator |
EMPTY
A empty no-op locator.
|
| Modifier and Type | Method and Description |
|---|---|
default MethodExecutionHandle<?,Object> |
createExecutionHandle(BeanDefinition<?> beanDefinition,
ExecutableMethod<Object,?> method)
Create an execution handle for the given bean definition and method.
|
default <T,R> Optional<ExecutableMethod<T,R>> |
findExecutableMethod(Class<T> beanType,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> Optional<MethodExecutionHandle<T,R>> |
findExecutionHandle(Class<T> beanType,
Qualifier<?> qualifier,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> Optional<MethodExecutionHandle<T,R>> |
findExecutionHandle(Class<T> beanType,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> Optional<MethodExecutionHandle<T,R>> |
findExecutionHandle(T bean,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> Optional<ExecutableMethod<T,R>> |
findProxyTargetMethod(Argument<T> beanType,
Qualifier<T> qualifier,
String method,
Class... arguments)
Finds the original unproxied method for a
ProxyBeanDefinition. |
default <T,R> Optional<ExecutableMethod<T,R>> |
findProxyTargetMethod(Class<T> beanType,
Qualifier<T> qualifier,
String method,
Class... arguments)
Finds the original unproxied method for a
ProxyBeanDefinition. |
default <T,R> Optional<ExecutableMethod<T,R>> |
findProxyTargetMethod(Class<T> beanType,
String method,
Class... arguments)
Finds the original unproxied method for a
ProxyBeanDefinition. |
default <T,R> ExecutableMethod<T,R> |
getExecutableMethod(Class<T> beanType,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> MethodExecutionHandle<T,R> |
getExecutionHandle(Class<T> beanType,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> MethodExecutionHandle<T,R> |
getExecutionHandle(T bean,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> ExecutableMethod<T,R> |
getProxyTargetMethod(Argument<T> beanType,
Qualifier<T> qualifier,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> ExecutableMethod<T,R> |
getProxyTargetMethod(Class<T> beanType,
Qualifier<T> qualifier,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> ExecutableMethod<T,R> |
getProxyTargetMethod(Class<T> beanType,
String method,
Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
static final ExecutionHandleLocator EMPTY
default <T,R> Optional<MethodExecutionHandle<T,R>> findExecutionHandle(Class<T> beanType, String method, Class... arguments)
T - The target beanR - The result type of the execution handlebeanType - The bean typemethod - The methodarguments - The argumentsdefault <T,R> Optional<MethodExecutionHandle<T,R>> findExecutionHandle(Class<T> beanType, Qualifier<?> qualifier, String method, Class... arguments)
T - The target beanR - The result type of the execution handlebeanType - The bean typequalifier - The bean qualifermethod - The methodarguments - The argumentsdefault <T,R> Optional<MethodExecutionHandle<T,R>> findExecutionHandle(T bean, String method, Class... arguments)
T - The target beanR - The result type of the execution handlebean - The bean to invoke the method onmethod - The methodarguments - The argumentsdefault <T,R> Optional<ExecutableMethod<T,R>> findExecutableMethod(Class<T> beanType, String method, Class... arguments)
T - The bean type classR - The result type of the execution handlebeanType - The bean typemethod - The methodarguments - The argumentsdefault <T,R> Optional<ExecutableMethod<T,R>> findProxyTargetMethod(Class<T> beanType, String method, Class... arguments)
ProxyBeanDefinition.T - The bean type classR - The result type of the execution handlebeanType - The bean typemethod - The methodarguments - The argumentsdefault <T,R> Optional<ExecutableMethod<T,R>> findProxyTargetMethod(Class<T> beanType, Qualifier<T> qualifier, String method, Class... arguments)
ProxyBeanDefinition.T - The bean type classR - The result type of the execution handlebeanType - The bean typequalifier - The qualifiermethod - The methodarguments - The argumentsdefault <T,R> Optional<ExecutableMethod<T,R>> findProxyTargetMethod(Argument<T> beanType, Qualifier<T> qualifier, String method, Class... arguments)
ProxyBeanDefinition.T - The bean type classR - The result type of the execution handlebeanType - The bean typequalifier - The qualifiermethod - The methodarguments - The argumentsdefault <T,R> ExecutableMethod<T,R> getExecutableMethod(Class<T> beanType, String method, Class... arguments) throws NoSuchMethodException
T - The bean type classR - The result type of the execution handlebeanType - The bean typemethod - The methodarguments - The argumentsNoSuchMethodException - if the method cannot be founddefault <T,R> ExecutableMethod<T,R> getProxyTargetMethod(Class<T> beanType, String method, Class... arguments) throws NoSuchMethodException
T - The bean type classR - The result type of the execution handlebeanType - The bean typemethod - The methodarguments - The argumentsNoSuchMethodException - if the method cannot be founddefault <T,R> ExecutableMethod<T,R> getProxyTargetMethod(Class<T> beanType, Qualifier<T> qualifier, String method, Class... arguments) throws NoSuchMethodException
T - The bean type classR - The result type of the execution handlebeanType - The bean typequalifier - The qualifiermethod - The methodarguments - The argumentsNoSuchMethodException - if the method cannot be founddefault <T,R> ExecutableMethod<T,R> getProxyTargetMethod(Argument<T> beanType, Qualifier<T> qualifier, String method, Class... arguments) throws NoSuchMethodException
T - The bean type classR - The result type of the execution handlebeanType - The bean typequalifier - The qualifiermethod - The methodarguments - The argumentsNoSuchMethodException - if the method cannot be founddefault <T,R> MethodExecutionHandle<T,R> getExecutionHandle(Class<T> beanType, String method, Class... arguments) throws NoSuchMethodException
T - The target beanR - The result type of the execution handlebeanType - The bean typemethod - The methodarguments - The argumentsNoSuchMethodException - if the method cannot be founddefault <T,R> MethodExecutionHandle<T,R> getExecutionHandle(T bean, String method, Class... arguments) throws NoSuchMethodException
T - The target beanR - The result type of the execution handlebean - The bean to invoke the method onmethod - The methodarguments - The argumentsNoSuchMethodException - if the method cannot be founddefault MethodExecutionHandle<?,Object> createExecutionHandle(BeanDefinition<?> beanDefinition, ExecutableMethod<Object,?> method)
beanDefinition - The bean definitionmethod - The method