org.oddjob.jmx.client
Class DirectInvocationClientFactory<T>

java.lang.Object
  extended by org.oddjob.jmx.client.DirectInvocationClientFactory<T>
Type Parameters:
T -
All Implemented Interfaces:
ClientInterfaceHandlerFactory<T>

public class DirectInvocationClientFactory<T>
extends Object
implements ClientInterfaceHandlerFactory<T>

A ClientInterfaceHandlerFactory that creates a client handler that passes all method invocations straight to the MBean.

Author:
rob

Constructor Summary
DirectInvocationClientFactory(Class<T> type)
           
 
Method Summary
 T createClientHandler(T ignored, ClientSideToolkit toolkit)
          Create a thing that handles communication with the server for an Interface..
 HandlerVersion getVersion()
          The version of this handler.
 Class<T> 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
 

Constructor Detail

DirectInvocationClientFactory

public DirectInvocationClientFactory(Class<T> type)
Method Detail

getVersion

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

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

createClientHandler

public T createClientHandler(T ignored,
                             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<T>
Parameters:
ignored - 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.

interfaceClass

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

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