org.sape.carbon.services.jmx.server.mx4j
Class RemoteMBeanServerProxy

java.lang.Object
  |
  +--org.sape.carbon.core.util.reflection.GenericProxy
        |
        +--org.sape.carbon.services.jmx.server.mx4j.RemoteMBeanServerProxy
All Implemented Interfaces:
InvocationHandler

public class RemoteMBeanServerProxy
extends GenericProxy

Dynamic proxy for a RemoteMBeanServer. Copyright 2002 Sapient

Since:
carbon 1.0
Version:
$Revision: 1.5 $($Author: dvoet $ / $Date: 2003/05/05 21:21:31 $)
Author:
Greg Hinkle, June 2002

Field Summary
private static Class[] INTERFACES
          Interfaces being applied tot he proxy.
private  mx4j.connector.RemoteMBeanServer remoteServer
          Holds the server being proxied.
 
Fields inherited from class org.sape.carbon.core.util.reflection.GenericProxy
 
Constructor Summary
RemoteMBeanServerProxy(mx4j.connector.RemoteMBeanServer remoteServer)
          Creates a new instance of RemoteMBeanServerProxy.
 
Method Summary
static javax.management.MBeanServer buildServerProxy(mx4j.connector.RemoteMBeanServer server)
          Builds a dynamic proxy around the RemoteMBeanServer.
protected  Object handleInvoke(Object proxy, Method m, Object[] args)
          Handles invokation of methods.
 
Methods inherited from class org.sape.carbon.core.util.reflection.GenericProxy
invoke, proxyEquals, proxyHashCode, proxyToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

remoteServer

private mx4j.connector.RemoteMBeanServer remoteServer
Holds the server being proxied.


INTERFACES

private static final Class[] INTERFACES
Interfaces being applied tot he proxy.

Constructor Detail

RemoteMBeanServerProxy

public RemoteMBeanServerProxy(mx4j.connector.RemoteMBeanServer remoteServer)
Creates a new instance of RemoteMBeanServerProxy.

Parameters:
remoteServer - the remote server to proxy
Method Detail

handleInvoke

protected Object handleInvoke(Object proxy,
                              Method m,
                              Object[] args)
                       throws Throwable
Handles invokation of methods.

Specified by:
handleInvoke in class GenericProxy
Parameters:
proxy - proxy being invoked
m - method being invoked
args - arguments passed to the method
Returns:
the result of the invocation
Throws:
Throwable - indicates an error in the invocation

buildServerProxy

public static javax.management.MBeanServer buildServerProxy(mx4j.connector.RemoteMBeanServer server)
Builds a dynamic proxy around the RemoteMBeanServer.

Parameters:
server - server to build the proxy around
Returns:
the proxied server


Copyright 1999-2003 Sapient Corporation. All Rights Reserved.