|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object toolbox.services.AbstractInterceptor
public abstract class AbstractInterceptor
Abstract implementation of the Interceptor
interface. Provides
some default implementations and convenience methods for implementing
interceptor.
Constructor Summary | |
---|---|
protected |
AbstractInterceptor()
Protected constructor. |
Method Summary | |
---|---|
protected java.lang.Object |
getObject()
Convenience method to return the actual Object instance. |
protected java.lang.Object |
getTarget()
Convenience method to return the invocation target Object instance. |
protected java.lang.Object |
invokeMethod(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Helper method to perform the method invocation. |
void |
setObject(java.lang.Object obj)
Set the Object instance that is the actual Object instance. |
void |
setTarget(java.lang.Object target)
Set the invocation target object instance. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface toolbox.services.Interceptor |
---|
init |
Methods inherited from interface java.lang.reflect.InvocationHandler |
---|
invoke |
Constructor Detail |
---|
protected AbstractInterceptor()
Method Detail |
---|
public void setTarget(java.lang.Object target)
setTarget
in interface Interceptor
target
- Object instance that is the invocation target.public void setObject(java.lang.Object obj)
setObject
in interface Interceptor
obj
- Object instance that is the actual object instance.protected java.lang.Object getTarget()
protected java.lang.Object getObject()
protected java.lang.Object invokeMethod(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args) throws java.lang.Throwable
proxy
- Proxy instance method was invoked on.method
- Method instance, of an interface method, that was invoked
on the proxy.args
- Method arguments.
java.lang.Throwable
- that occured during the method invocation.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |