public class DefaultInvocationHandler extends java.lang.Object implements WrapperInvocationHandler, java.io.Serializable
Constructor and Description |
---|
DefaultInvocationHandler() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
getWrappedComponent()
Get the wrapped component.
|
void |
initialise(ComponentWrapper wrapper,
java.lang.Class<?>[] wrappingInterfaces,
java.lang.Object wrapped,
java.lang.Class<?>[] wrappedInterfaces)
Initialise the invocation handler.
|
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args) |
public void initialise(ComponentWrapper wrapper, java.lang.Class<?>[] wrappingInterfaces, java.lang.Object wrapped, java.lang.Class<?>[] wrappedInterfaces)
wrapper
- The wrapper. Handles invocations for wrapping
interfaces.wrappingInterfaces
- The wrapping interfaces.wrapped
- The component.wrappedInterfaces
- The component interfaces.public java.lang.Object getWrappedComponent()
WrapperInvocationHandler
getWrappedComponent
in interface WrapperInvocationHandler
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
java.lang.Throwable