public class TransporterHandler extends Object implements ServerInvocationHandler
Updated from jboss-remoting-2.0.0 - to handle primitive types
Constructor and Description |
---|
TransporterHandler(Object target) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server
invoker handler.
|
Object |
invoke(InvocationRequest invocation)
Takes the invocation request, which should have a internal parameter of
NameBasedInvocation, and converts that to a method call on the target POJO
(using reflection).
|
void |
removeListener(InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the
server invoker handler.
|
void |
setInvoker(ServerInvoker invoker)
Sets the invoker that owns this handler.
|
void |
setMBeanServer(MBeanServer server)
Sets the mbean server that the handler can reference.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
toString
public TransporterHandler(Object target)
public Object invoke(InvocationRequest invocation) throws Throwable
invoke
in interface ServerInvocationHandler
Throwable
public void setMBeanServer(MBeanServer server)
setMBeanServer
in interface ServerInvocationHandler
public void setInvoker(ServerInvoker invoker)
setInvoker
in interface ServerInvocationHandler
public void addListener(InvokerCallbackHandler callbackHandler)
addListener
in interface ServerInvocationHandler
public void removeListener(InvokerCallbackHandler callbackHandler)
removeListener
in interface ServerInvocationHandler
Copyright © 2011 Nuxeo SA. All Rights Reserved.