org.oddjob.jmx.handlers
Class ExportableHandlerFactory

java.lang.Object
  extended by org.oddjob.jmx.handlers.ExportableHandlerFactory
All Implemented Interfaces:
ClientInterfaceHandlerFactory<Exportable>

public class ExportableHandlerFactory
extends Object
implements ClientInterfaceHandlerFactory<Exportable>

Provide Handlers for the Exportable interface.

This is a special handler because Exportable is a fake client side interface.

Author:
rob

Field Summary
static HandlerVersion VERSION
           
 
Constructor Summary
ExportableHandlerFactory()
           
 
Method Summary
 Exportable createClientHandler(Exportable proxy, ClientSideToolkit toolkit)
          Create a thing that handles communication with the server for an Interface..
 HandlerVersion getVersion()
          The version of this handler.
 Class<Exportable> 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

ExportableHandlerFactory

public ExportableHandlerFactory()
Method Detail

interfaceClass

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

Specified by:
interfaceClass in interface ClientInterfaceHandlerFactory<Exportable>
Returns:
The class.

getVersion

public HandlerVersion getVersion()
Description copied from interface: ClientInterfaceHandlerFactory
The version of this handler.

Specified by:
getVersion in interface ClientInterfaceHandlerFactory<Exportable>
Returns:

createClientHandler

public Exportable createClientHandler(Exportable proxy,
                                      ClientSideToolkit toolkit)
Description copied from interface: ClientInterfaceHandlerFactory
Create a thing that handles communication with the server for an Interface..

Specified by:
createClientHandler in interface ClientInterfaceHandlerFactory<Exportable>
Parameters:
proxy - The client side proxy the invocations are coming from. Most of the time this will be ignored but it's useful as the source for events.
Returns:
An Handler object. Never null.