org.oddjob.jmx.server
Interface ServerInterfaceHandlerFactory<S,T>

Type Parameters:
S - The class of the interface (or Object) being exposed remotely.
T - The class of thing that will provide the signature of the handler.
All Known Implementing Classes:
BeanDirectoryHandlerFactory, ComponentOwnerHandlerFactory, DescribeableHandlerFactory, DynaBeanHandlerFactory, IconicHandlerFactory, LogEnabledHandlerFactory, LogPollableHandlerFactory, ObjectInterfaceHandlerFactory, RemoteOddjobHandlerFactory, ResetableHandlerFactory, RunnableHandlerFactory, StatefulHandlerFactory, StoppableHandlerFactory, StructuralHandlerFactory, VanillaServerHandlerFactory

public interface ServerInterfaceHandlerFactory<S,T>

Information for an interface so that it may be exposed via an OddjobMBean.

Author:
Rob Gordon.

Method Summary
 ClientHandlerResolver<T> clientHandlerFactory()
          Provide the corresponding ClientInterfaceHandlerFactory resolver.
 ServerInterfaceHandler createServerHandler(S target, ServerSideToolkit toolkit)
          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<S> interfaceClass()
          Provide the interface class this is the information about.
 

Method Detail

interfaceClass

Class<S> interfaceClass()
Provide the interface class this is the information about.

Returns:
The class.

getMBeanAttributeInfo

MBeanAttributeInfo[] getMBeanAttributeInfo()
Get the MBeanAttributeInfo for the interface.

Returns:
An MBeanAttributeInfo array.

getMBeanOperationInfo

MBeanOperationInfo[] getMBeanOperationInfo()
Get the MBeanOperationInfo for the interface.

Returns:
An MBeanOperationInfo array.

getMBeanNotificationInfo

MBeanNotificationInfo[] getMBeanNotificationInfo()
Get the MBeanNotificationInfo for the interface.

Returns:
An MBeanNotificationInfo array.

createServerHandler

ServerInterfaceHandler createServerHandler(S target,
                                           ServerSideToolkit toolkit)
Create a handler that handles communication on behalf of the MBean with the interface.

Parameters:
target - The target object implementing the interface.
toolkit - The OddjobMBean.
Returns:
An InterfaceHandler.

clientHandlerFactory

ClientHandlerResolver<T> clientHandlerFactory()
Provide the corresponding ClientInterfaceHandlerFactory resolver.

Returns:
The resolver.