net.sf.seaf.factory.impl.support
Class DefaultProxyBase
java.lang.Object
net.sf.seaf.factory.impl.support.DefaultProxyBase
- All Implemented Interfaces:
- InvocationHandler, Proxy
public class DefaultProxyBase
- extends Object
- implements Proxy
A default base class for proxies. Passes invocations on the proxied object
with no added functionality.
Subclass and override invoke() method to add functionality; call
super.invoke(); to perform the invocation itself.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultProxyBase
public DefaultProxyBase()
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke in interface InvocationHandler
- Throws:
Throwable
getProxiedObject
public final Object getProxiedObject()
- Get the proxied object.
- Returns:
- The proxied object
setProxiedObject
public final void setProxiedObject(Object proxiedObject)
- Description copied from interface:
Proxy
- Set the proxied object.
- Specified by:
setProxiedObject in interface Proxy
- Parameters:
proxiedObject - The proxied object
Copyright © 2008-2012 SEAF. All Rights Reserved.