Package org.oddjob.jmx.handlers
Class ExportableHandlerFactory
java.lang.Object
org.oddjob.jmx.handlers.ExportableHandlerFactory
- All Implemented Interfaces:
ServerInterfaceHandlerFactory<Object,Exportable>
public class ExportableHandlerFactory
extends Object
implements ServerInterfaceHandlerFactory<Object,Exportable>
Provide Handlers for the
Exportable interface.
This is a special handler because Exportable is a fake client side interface.
- Author:
- rob
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionProvide the client class.createServerHandler(Object target, ServerSideToolkit toolkit) Create a handler that handles communication on behalf of the MBean with the interface.Get the version of this handler.Get the MBeanAttributeInfo for the interface.Get the MBeanOperationInfo for the interface.List<NotificationType<?>> Get the MBeanNotificationInfo for the interface.Provide the service side class this is the factory for.
-
Field Details
-
VERSION
-
-
Constructor Details
-
ExportableHandlerFactory
public ExportableHandlerFactory()
-
-
Method Details
-
serverClass
Description copied from interface:ServerInterfaceHandlerFactoryProvide the service side class this is the factory for.- Specified by:
serverClassin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Returns:
- The class. Not null.
-
clientClass
Description copied from interface:ServerInterfaceHandlerFactoryProvide the client class. This is what the client proxy will implement. It will mainly be the same as the server class but sometimes there is extra functionality the client needs and these classes will provide that.- Specified by:
clientClassin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Returns:
- The class. Not null.
-
getHandlerVersion
Description copied from interface:ServerInterfaceHandlerFactoryGet the version of this handler.- Specified by:
getHandlerVersionin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Returns:
- The version. Not null.
-
getMBeanAttributeInfo
Description copied from interface:ServerInterfaceHandlerFactoryGet the MBeanAttributeInfo for the interface.- Specified by:
getMBeanAttributeInfoin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Returns:
- An MBeanAttributeInfo array.
-
getMBeanOperationInfo
Description copied from interface:ServerInterfaceHandlerFactoryGet the MBeanOperationInfo for the interface.- Specified by:
getMBeanOperationInfoin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Returns:
- An MBeanOperationInfo array.
-
getNotificationTypes
Description copied from interface:ServerInterfaceHandlerFactoryGet the MBeanNotificationInfo for the interface.- Specified by:
getNotificationTypesin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Returns:
- An MBeanNotificationInfo array.
-
createServerHandler
Description copied from interface:ServerInterfaceHandlerFactoryCreate a handler that handles communication on behalf of the MBean with the interface.- Specified by:
createServerHandlerin interfaceServerInterfaceHandlerFactory<Object,Exportable> - Parameters:
target- The target object implementing the interface.toolkit- The OddjobMBean.- Returns:
- An InterfaceHandler.
-