org.oddjob.jmx.handlers
Class BeanDirectoryHandlerFactory

java.lang.Object
  extended by org.oddjob.jmx.handlers.BeanDirectoryHandlerFactory
All Implemented Interfaces:
ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>

public class BeanDirectoryHandlerFactory
extends Object
implements ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>


Nested Class Summary
static class BeanDirectoryHandlerFactory.ClientBeanDirectoryHandlerFactory
           
 
Field Summary
static HandlerVersion VERSION
           
 
Constructor Summary
BeanDirectoryHandlerFactory()
           
 
Method Summary
 ClientHandlerResolver<RemoteDirectoryOwner> clientHandlerFactory()
          Provide the corresponding ClientInterfaceHandlerFactory resolver.
 ServerInterfaceHandler createServerHandler(BeanDirectoryOwner directory, ServerSideToolkit serverToolkit)
          Create a handler that handles communication on behalf of the MBean with the interface.
 MBeanAttributeInfo[] getMBeanAttributeInfo()
          Get the MBeanAttributeInfo for the interface.
 MBeanNotificationInfo[] getMBeanNotificationInfo()
          Get the MBeanNotificationInfo for the interface.
 MBeanOperationInfo[] getMBeanOperationInfo()
          Get the MBeanOperationInfo for the interface.
 Class<BeanDirectoryOwner> interfaceClass()
          Provide the interface class this is the information about.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

VERSION

public static final HandlerVersion VERSION
Constructor Detail

BeanDirectoryHandlerFactory

public BeanDirectoryHandlerFactory()
Method Detail

interfaceClass

public Class<BeanDirectoryOwner> interfaceClass()
Description copied from interface: ServerInterfaceHandlerFactory
Provide the interface class this is the information about.

Specified by:
interfaceClass in interface ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>
Returns:
The class.

getMBeanAttributeInfo

public MBeanAttributeInfo[] getMBeanAttributeInfo()
Description copied from interface: ServerInterfaceHandlerFactory
Get the MBeanAttributeInfo for the interface.

Specified by:
getMBeanAttributeInfo in interface ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>
Returns:
An MBeanAttributeInfo array.

getMBeanOperationInfo

public MBeanOperationInfo[] getMBeanOperationInfo()
Description copied from interface: ServerInterfaceHandlerFactory
Get the MBeanOperationInfo for the interface.

Specified by:
getMBeanOperationInfo in interface ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>
Returns:
An MBeanOperationInfo array.

getMBeanNotificationInfo

public MBeanNotificationInfo[] getMBeanNotificationInfo()
Description copied from interface: ServerInterfaceHandlerFactory
Get the MBeanNotificationInfo for the interface.

Specified by:
getMBeanNotificationInfo in interface ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>
Returns:
An MBeanNotificationInfo array.

clientHandlerFactory

public ClientHandlerResolver<RemoteDirectoryOwner> clientHandlerFactory()
Description copied from interface: ServerInterfaceHandlerFactory
Provide the corresponding ClientInterfaceHandlerFactory resolver.

Specified by:
clientHandlerFactory in interface ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>
Returns:
The resolver.

createServerHandler

public ServerInterfaceHandler createServerHandler(BeanDirectoryOwner directory,
                                                  ServerSideToolkit serverToolkit)
Description copied from interface: ServerInterfaceHandlerFactory
Create a handler that handles communication on behalf of the MBean with the interface.

Specified by:
createServerHandler in interface ServerInterfaceHandlerFactory<BeanDirectoryOwner,RemoteDirectoryOwner>
Parameters:
directory - The target object implementing the interface.
serverToolkit - The OddjobMBean.
Returns:
An InterfaceHandler.