org.apache.geronimo.proxy
Class ProxyContainer
java.lang.Object
org.apache.geronimo.proxy.SimpleComponent
org.apache.geronimo.proxy.SimpleContainer
org.apache.geronimo.proxy.SimpleRPCContainer
org.apache.geronimo.proxy.ProxyContainer
- All Implemented Interfaces:
- Component, Container, InvocationHandler, RPCContainer, Serializable
- public class ProxyContainer
- extends SimpleRPCContainer
- implements InvocationHandler
A local container that is a proxy for some other "real" container.
This container is itself fairly unintelligent; you need to add some
interceptors to get the desired behavior (i.e. contacting the real
server on every request). For example, see
org.apache.geronimo.remoting.jmx.RemoteMBeanServerFactory
- Version:
- $Revision: 1.9 $ $Date: 2004/03/10 09:58:43 $
- See Also:
- Serialized Form
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProxyContainer
public ProxyContainer(Interceptor firstInterceptor)
invoke
public Object invoke(Object proxy,
Method method,
Object[] args)
throws Throwable
- Specified by:
invoke
in interface InvocationHandler
- Throws:
Throwable
- See Also:
InvocationHandler.invoke(java.lang.Object, java.lang.reflect.Method, java.lang.Object[])
createProxy
public Object createProxy(ClassLoader cl,
Class[] interfaces)
getContainer
public static ProxyContainer getContainer(Object proxy)
Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.