|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.avalon.fortress.impl.factory.PassThroughInvocationHandler
final class PassThroughInvocationHandler
InvocationHandler that just passes on all methods to target object.
Field Summary | |
---|---|
private java.lang.Object |
m_object
The target object delegated to. |
Constructor Summary | |
---|---|
PassThroughInvocationHandler(java.lang.Object object)
Create an Invocation handler for specified object. |
Method Summary | |
---|---|
(package private) java.lang.Object |
getObject()
Retrieve the underlying object delegated to. |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method meth,
java.lang.Object[] args)
Invoke the appropriate method on underlying object. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final java.lang.Object m_object
Constructor Detail |
---|
public PassThroughInvocationHandler(java.lang.Object object)
object
- the object to delegate toMethod Detail |
---|
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method meth, java.lang.Object[] args) throws java.lang.Throwable
invoke
in interface java.lang.reflect.InvocationHandler
proxy
- the proxy objectmeth
- the methodargs
- the arguments
java.lang.Throwable
- method throws an exceptionjava.lang.Object getObject()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |