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<?,java.lang.Object> |
createExecutionHandle(BeanDefinition<?> beanDefinition,
ExecutableMethod<java.lang.Object,?> method)
Create an execution handle for the given bean definition and method.
|
default <T,R> java.util.Optional<ExecutableMethod<T,R>> |
findExecutableMethod(java.lang.Class<T> beanType,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> java.util.Optional<MethodExecutionHandle<T,R>> |
findExecutionHandle(java.lang.Class<T> beanType,
Qualifier<?> qualifier,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> java.util.Optional<MethodExecutionHandle<T,R>> |
findExecutionHandle(java.lang.Class<T> beanType,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> java.util.Optional<MethodExecutionHandle<T,R>> |
findExecutionHandle(T bean,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> java.util.Optional<ExecutableMethod<T,R>> |
findProxyTargetMethod(java.lang.Class<T> beanType,
Qualifier<T> qualifier,
java.lang.String method,
java.lang.Class... arguments)
Finds the original unproxied method for a
ProxyBeanDefinition . |
default <T,R> java.util.Optional<ExecutableMethod<T,R>> |
findProxyTargetMethod(java.lang.Class<T> beanType,
java.lang.String method,
java.lang.Class... arguments)
Finds the original unproxied method for a
ProxyBeanDefinition . |
default <T,R> ExecutableMethod<T,R> |
getExecutableMethod(java.lang.Class<T> beanType,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> MethodExecutionHandle<T,R> |
getExecutionHandle(java.lang.Class<T> beanType,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> MethodExecutionHandle<T,R> |
getExecutionHandle(T bean,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> ExecutableMethod<T,R> |
getProxyTargetMethod(java.lang.Class<T> beanType,
Qualifier<T> qualifier,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
default <T,R> ExecutableMethod<T,R> |
getProxyTargetMethod(java.lang.Class<T> beanType,
java.lang.String method,
java.lang.Class... arguments)
Finds an optimized execution handle for invoking a bean method.
|
static final ExecutionHandleLocator EMPTY
default <T,R> java.util.Optional<MethodExecutionHandle<T,R>> findExecutionHandle(java.lang.Class<T> beanType, java.lang.String method, java.lang.Class... arguments)
T
- The target beanR
- The result type of the execution handlebeanType
- The bean typemethod
- The methodarguments
- The argumentsdefault <T,R> java.util.Optional<MethodExecutionHandle<T,R>> findExecutionHandle(java.lang.Class<T> beanType, Qualifier<?> qualifier, java.lang.String method, java.lang.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> java.util.Optional<MethodExecutionHandle<T,R>> findExecutionHandle(T bean, java.lang.String method, java.lang.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> java.util.Optional<ExecutableMethod<T,R>> findExecutableMethod(java.lang.Class<T> beanType, java.lang.String method, java.lang.Class... arguments)
T
- The bean type classR
- The result type of the execution handlebeanType
- The bean typemethod
- The methodarguments
- The argumentsdefault <T,R> java.util.Optional<ExecutableMethod<T,R>> findProxyTargetMethod(java.lang.Class<T> beanType, java.lang.String method, java.lang.Class... arguments)
ProxyBeanDefinition
.T
- The bean type classR
- The result type of the execution handlebeanType
- The bean typemethod
- The methodarguments
- The argumentsdefault <T,R> java.util.Optional<ExecutableMethod<T,R>> findProxyTargetMethod(java.lang.Class<T> beanType, Qualifier<T> qualifier, java.lang.String method, java.lang.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(java.lang.Class<T> beanType, java.lang.String method, java.lang.Class... arguments) throws java.lang.NoSuchMethodException
T
- The bean type classR
- The result type of the execution handlebeanType
- The bean typemethod
- The methodarguments
- The argumentsjava.lang.NoSuchMethodException
- if the method cannot be founddefault <T,R> ExecutableMethod<T,R> getProxyTargetMethod(java.lang.Class<T> beanType, java.lang.String method, java.lang.Class... arguments) throws java.lang.NoSuchMethodException
T
- The bean type classR
- The result type of the execution handlebeanType
- The bean typemethod
- The methodarguments
- The argumentsjava.lang.NoSuchMethodException
- if the method cannot be founddefault <T,R> ExecutableMethod<T,R> getProxyTargetMethod(java.lang.Class<T> beanType, Qualifier<T> qualifier, java.lang.String method, java.lang.Class... arguments) throws java.lang.NoSuchMethodException
T
- The bean type classR
- The result type of the execution handlebeanType
- The bean typequalifier
- The qualifiermethod
- The methodarguments
- The argumentsjava.lang.NoSuchMethodException
- if the method cannot be founddefault <T,R> MethodExecutionHandle<T,R> getExecutionHandle(java.lang.Class<T> beanType, java.lang.String method, java.lang.Class... arguments) throws java.lang.NoSuchMethodException
T
- The target beanR
- The result type of the execution handlebeanType
- The bean typemethod
- The methodarguments
- The argumentsjava.lang.NoSuchMethodException
- if the method cannot be founddefault <T,R> MethodExecutionHandle<T,R> getExecutionHandle(T bean, java.lang.String method, java.lang.Class... arguments) throws java.lang.NoSuchMethodException
T
- The target beanR
- The result type of the execution handlebean
- The bean to invoke the method onmethod
- The methodarguments
- The argumentsjava.lang.NoSuchMethodException
- if the method cannot be founddefault MethodExecutionHandle<?,java.lang.Object> createExecutionHandle(BeanDefinition<?> beanDefinition, ExecutableMethod<java.lang.Object,?> method)
beanDefinition
- The bean definitionmethod
- The method