public class VanillaServerHandlerFactory<T> extends Object implements ServerInterfaceHandlerFactory<T,T>
Use this when there is no call backs, and no final properties of the target where performance might benefit from caching.
Constructor and Description |
---|
VanillaServerHandlerFactory(Class<T> cl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
ClientHandlerResolver<T> |
clientHandlerFactory()
Provide the corresponding
ClientInterfaceHandlerFactory
resolver. |
ServerInterfaceHandler |
createServerHandler(T target,
ServerSideToolkit ojmb)
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<T> |
interfaceClass()
Provide the interface class this is the information
about.
|
public Class<T> interfaceClass()
ServerInterfaceHandlerFactory
interfaceClass
in interface ServerInterfaceHandlerFactory<T,T>
public MBeanAttributeInfo[] getMBeanAttributeInfo()
ServerInterfaceHandlerFactory
getMBeanAttributeInfo
in interface ServerInterfaceHandlerFactory<T,T>
public MBeanOperationInfo[] getMBeanOperationInfo()
ServerInterfaceHandlerFactory
getMBeanOperationInfo
in interface ServerInterfaceHandlerFactory<T,T>
public MBeanNotificationInfo[] getMBeanNotificationInfo()
ServerInterfaceHandlerFactory
getMBeanNotificationInfo
in interface ServerInterfaceHandlerFactory<T,T>
public ServerInterfaceHandler createServerHandler(T target, ServerSideToolkit ojmb)
ServerInterfaceHandlerFactory
createServerHandler
in interface ServerInterfaceHandlerFactory<T,T>
target
- The target object implementing the interface.ojmb
- The OddjobMBean.public ClientHandlerResolver<T> clientHandlerFactory()
ServerInterfaceHandlerFactory
ClientInterfaceHandlerFactory
resolver.clientHandlerFactory
in interface ServerInterfaceHandlerFactory<T,T>