org.apache.geronimo.proxy
Class ProxyContainer

java.lang.Object
  extended byorg.apache.geronimo.proxy.SimpleComponent
      extended byorg.apache.geronimo.proxy.SimpleContainer
          extended byorg.apache.geronimo.proxy.SimpleRPCContainer
              extended byorg.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:
$Rev: 355877 $ $Date: 2005-12-11 03:48:27 +0100 (Sun, 11 Dec 2005) $
See Also:
Serialized Form

Constructor Summary
ProxyContainer(Interceptor firstInterceptor)
           
 
Method Summary
 Object createProxy(ClassLoader cl, Class[] interfaces)
           
static ProxyContainer getContainer(Object proxy)
           
 Object invoke(Object proxy, Method method, Object[] args)
           
 
Methods inherited from class org.apache.geronimo.proxy.SimpleRPCContainer
getPlugin, getPluginObject, invoke, putPlugin, putPluginObject
 
Methods inherited from class org.apache.geronimo.proxy.SimpleContainer
addComponent, getComponents, removeComponent
 
Methods inherited from class org.apache.geronimo.proxy.SimpleComponent
getContainer, getObjectName, setContainer, setObjectName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.geronimo.core.service.Container
addComponent, getComponents, removeComponent
 
Methods inherited from interface org.apache.geronimo.core.service.Component
getContainer, setContainer
 

Constructor Detail

ProxyContainer

public ProxyContainer(Interceptor firstInterceptor)
Method Detail

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-2007 Apache Software Foundation. All Rights Reserved.