|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.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.
Constructor Summary | |
---|---|
TransporterHandler(java.lang.Object target)
|
Method Summary | |
---|---|
void |
addListener(InvokerCallbackHandler callbackHandler)
Adds a callback handler that will listen for callbacks from the server invoker handler. |
java.lang.Object |
invoke(InvocationRequest invocation)
Takes the invocation request, which should have a internal parameter of NameBasedInvocation, and convert 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)
set the invoker that owns this handler |
void |
setMBeanServer(javax.management.MBeanServer server)
set 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 |
Methods inherited from interface org.jboss.remoting.ServerInvocationHandler |
---|
toString |
Constructor Detail |
---|
public TransporterHandler(java.lang.Object target)
Method Detail |
---|
public java.lang.Object invoke(InvocationRequest invocation) throws java.lang.Throwable
invoke
in interface ServerInvocationHandler
invocation
-
java.lang.Throwable
public void setMBeanServer(javax.management.MBeanServer server)
setMBeanServer
in interface ServerInvocationHandler
server
- public void setInvoker(ServerInvoker invoker)
setInvoker
in interface ServerInvocationHandler
invoker
- public void addListener(InvokerCallbackHandler callbackHandler)
addListener
in interface ServerInvocationHandler
callbackHandler
- public void removeListener(InvokerCallbackHandler callbackHandler)
removeListener
in interface ServerInvocationHandler
callbackHandler
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |