public class VanillaServerHandlerFactory<T> extends java.lang.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(java.lang.Class<T> cl)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Class<T> |
clientClass()
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.
|
boolean |
equals(java.lang.Object obj) |
javax.management.MBeanAttributeInfo[] |
getMBeanAttributeInfo()
Get the MBeanAttributeInfo for the interface.
|
javax.management.MBeanNotificationInfo[] |
getMBeanNotificationInfo()
Get the MBeanNotificationInfo for the interface.
|
javax.management.MBeanOperationInfo[] |
getMBeanOperationInfo()
Get the MBeanOperationInfo for the interface.
|
int |
hashCode() |
java.lang.Class<T> |
interfaceClass()
Provide the interface class this is the information
about.
|
java.lang.String |
toString() |
public VanillaServerHandlerFactory(java.lang.Class<T> cl)
cl
- The interface for which we wish to provide
handlers.public java.lang.Class<T> interfaceClass()
ServerInterfaceHandlerFactory
interfaceClass
in interface ServerInterfaceHandlerFactory<T,T>
public javax.management.MBeanAttributeInfo[] getMBeanAttributeInfo()
ServerInterfaceHandlerFactory
getMBeanAttributeInfo
in interface ServerInterfaceHandlerFactory<T,T>
public javax.management.MBeanOperationInfo[] getMBeanOperationInfo()
ServerInterfaceHandlerFactory
getMBeanOperationInfo
in interface ServerInterfaceHandlerFactory<T,T>
public javax.management.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 java.lang.Class<T> clientClass()
ServerInterfaceHandlerFactory
ClientInterfaceHandlerFactory
resolver.clientClass
in interface ServerInterfaceHandlerFactory<T,T>
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object