public class CompletableHandler extends StatelessExtensionHandler
ExtensionHandler implementation for bean extension interface
Completable.| Modifier and Type | Field and Description |
|---|---|
static ExtensionSupport |
SUPPORT
ExtensionSupport related to this handler supposed to be used when
configuring extension handlers in IBeanFactorys, for example in
ProxyIBeanFactory.Builder#withInterfaceSupport(ExtensionSupport). |
| Constructor and Description |
|---|
CompletableHandler() |
| Modifier and Type | Method and Description |
|---|---|
Object |
handleExtendedInterfaceCall(IBeanContext<?> context,
IBeanFieldAccess bean,
Object proxyInstance,
Method method,
Object[] params)
This default implementation always throws a
UnsupportedOperationException. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinterceptGetterCall, interceptSetterCall, onInitStatefulpublic static final ExtensionSupport SUPPORT
ExtensionSupport related to this handler supposed to be used when
configuring extension handlers in IBeanFactorys, for example in
ProxyIBeanFactory.Builder#withInterfaceSupport(ExtensionSupport).public Object handleExtendedInterfaceCall(IBeanContext<?> context, IBeanFieldAccess bean, Object proxyInstance, Method method, Object[] params) throws Throwable
StatelessExtensionHandlerUnsupportedOperationException. Should be always overridden in
case the extension interface contains its own methods.handleExtendedInterfaceCall in interface ExtensionHandlerhandleExtendedInterfaceCall in class StatelessExtensionHandlercontext - provides meta information about the beanbean - allows this method to read or change field values of the IBeanproxyInstance - the IBean instance object (see
InvocationHandler.invoke(Object, Method, Object[]) for
more details)method - the Method of the extension interface that was called
on the IBean (see
InvocationHandler.invoke(Object, Method, Object[]) for
more details)params - the parameters passed to the extension method call (see
InvocationHandler.invoke(Object, Method, Object[]) for
more details)null if the return type is
void. (see
InvocationHandler.invoke(Object, Method, Object[]) for
more details)Throwable - can be any Error, RuntimeException or checked
exception that is definied in the signature of the extension
method. (see
InvocationHandler.invoke(Object, Method, Object[])
for more details)ExtensionHandler.handleExtendedInterfaceCall(IBeanContext,
IBeanFieldAccess, Object, Method, Object[])