org.oddjob.jmx.server
Class ServerInterfaceManagerImpl

java.lang.Object
  extended by org.oddjob.jmx.server.ServerInterfaceManagerImpl
All Implemented Interfaces:
ServerInterfaceManager

public class ServerInterfaceManagerImpl
extends Object
implements ServerInterfaceManager

Simple Implementation of an InterfaceManager.

Author:
Rob Gordon

Constructor Summary
ServerInterfaceManagerImpl(Object target, ServerSideToolkit ojmb, ServerInterfaceHandlerFactory<?,?>[] serverHandlerFactories)
           
ServerInterfaceManagerImpl(Object target, ServerSideToolkit ojmb, ServerInterfaceHandlerFactory<?,?>[] serverHandlerFactories, OddjobJMXAccessController accessController)
          Constructor.
 
Method Summary
 ClientHandlerResolver<?>[] allClientInfo()
          Return the interface supported.
 void destroy()
          Called when an MBean is being destroyed.
 MBeanInfo getMBeanInfo()
          Get the MBeanInfo based on all the interfaces.
 Object invoke(String actionName, Object[] params, String[] signature)
          Invoke a method using the arguments as received by an MBean.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServerInterfaceManagerImpl

public ServerInterfaceManagerImpl(Object target,
                                  ServerSideToolkit ojmb,
                                  ServerInterfaceHandlerFactory<?,?>[] serverHandlerFactories)

ServerInterfaceManagerImpl

public ServerInterfaceManagerImpl(Object target,
                                  ServerSideToolkit ojmb,
                                  ServerInterfaceHandlerFactory<?,?>[] serverHandlerFactories,
                                  OddjobJMXAccessController accessController)
Constructor.

Parameters:
target. - The target object the OddjobMBean is representing.
ojmb - The OddjobMBean.
serverHandlerFactories - The InterfaceInfos.
Method Detail

allClientInfo

public ClientHandlerResolver<?>[] allClientInfo()
Description copied from interface: ServerInterfaceManager
Return the interface supported.

Specified by:
allClientInfo in interface ServerInterfaceManager
Returns:
The interfaces.

getMBeanInfo

public MBeanInfo getMBeanInfo()
Description copied from interface: ServerInterfaceManager
Get the MBeanInfo based on all the interfaces.

Specified by:
getMBeanInfo in interface ServerInterfaceManager
Returns:

invoke

public Object invoke(String actionName,
                     Object[] params,
                     String[] signature)
              throws MBeanException,
                     ReflectionException
Description copied from interface: ServerInterfaceManager
Invoke a method using the arguments as received by an MBean.

Specified by:
invoke in interface ServerInterfaceManager
Parameters:
actionName - The action (method) name.
params - An array of object that are the parameters.
signature - An array of Strings that are class names.
Returns:
The result of the method call.
Throws:
MBeanException
ReflectionException

destroy

public void destroy()
Description copied from interface: ServerInterfaceManager
Called when an MBean is being destroyed. Used to InterfaceHandlers a chance to remove listeners.

Specified by:
destroy in interface ServerInterfaceManager