|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.pfsw.extender.DelegatingInvocationHandler<TDelegate>
public class DelegatingInvocationHandler<TDelegate>
A generic InvocationHandler that passes all method calls through to a delegate object. If that delegate object is not available initially then an ObjectRetrievalService and an identifier will be used to get it.
Constructor Summary | |
---|---|
protected |
DelegatingInvocationHandler()
|
|
DelegatingInvocationHandler(TDelegate object)
Initialize the new instance with an object to delegate all method calls to. |
Method Summary | |
---|---|
TDelegate |
getDelegate()
Returns the object to which the requested method calls will be delegated. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
Executes the given method with the specified args against the internal delegate. |
protected void |
setDelegate(TDelegate delegate)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected DelegatingInvocationHandler()
public DelegatingInvocationHandler(TDelegate object)
object
- The object to which method calls are delegated.
java.lang.IllegalArgumentException
- if object is null.Method Detail |
---|
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
public TDelegate getDelegate()
protected void setDelegate(TDelegate delegate)
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |