|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.runtime.remoting.transporter.TransporterHandler
public class TransporterHandler
Simple handler that uses reflection to make calls on target POJO (as supplied in the constructor) when receive invocation requests. Updated from jboss-remoting-2.0.0 - to handle primitive types
| Constructor Summary | |
|---|---|
TransporterHandler(Object target)
|
|
| Method Summary | |
|---|---|
void |
addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server invoker handler. |
Object |
invoke(org.jboss.remoting.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(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
Removes the callback handler that was listening for callbacks from the server invoker handler. |
void |
setInvoker(org.jboss.remoting.ServerInvoker invoker)
Sets the invoker that owns this handler. |
void |
setMBeanServer(MBeanServer server)
Sets the mbean server that the handler can reference. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransporterHandler(Object target)
| Method Detail |
|---|
public Object invoke(org.jboss.remoting.InvocationRequest invocation)
throws Throwable
invoke in interface org.jboss.remoting.ServerInvocationHandlerinvocation -
Throwablepublic void setMBeanServer(MBeanServer server)
setMBeanServer in interface org.jboss.remoting.ServerInvocationHandlerserver - public void setInvoker(org.jboss.remoting.ServerInvoker invoker)
setInvoker in interface org.jboss.remoting.ServerInvocationHandlerinvoker - public void addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
addListener in interface org.jboss.remoting.ServerInvocationHandlercallbackHandler - public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
removeListener in interface org.jboss.remoting.ServerInvocationHandlercallbackHandler -
|
Nuxeo Enterprise Platform 5.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||