org.jboss.ejb3.testremote.server
Class MockServerInvocationHandler
java.lang.Object
org.jboss.ejb3.testremote.server.MockServerInvocationHandler
- All Implemented Interfaces:
- org.jboss.remoting.ServerInvocationHandler
public class MockServerInvocationHandler
- extends java.lang.Object
- implements org.jboss.remoting.ServerInvocationHandler
MockServerInvocationHandler
|
Method Summary |
void |
addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
|
java.lang.Object |
invoke(org.jboss.remoting.InvocationRequest invocationRequest)
On receiving a MockServer.MockServerRequest the invocation handler will
carry out appropriate operation on the MockServer
Supported requests are
MockServerRequest.START - On receiving this request, the invocation
handler will start the MockServer
MockServerRequest.STOP - On receiving this request, the invocation
handler will stop the MockServer
|
void |
removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
|
void |
setInvoker(org.jboss.remoting.ServerInvoker invoker)
|
void |
setMBeanServer(javax.management.MBeanServer server)
|
| 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 |
MockServerInvocationHandler
public MockServerInvocationHandler(MockServer mockServer)
- Constructor
- Parameters:
mockServer -
addListener
public void addListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
- Specified by:
addListener in interface org.jboss.remoting.ServerInvocationHandler
- See Also:
ServerInvocationHandler.addListener(org.jboss.remoting.callback.InvokerCallbackHandler)
invoke
public java.lang.Object invoke(org.jboss.remoting.InvocationRequest invocationRequest)
throws java.lang.Throwable
- On receiving a
MockServer.MockServerRequest the invocation handler will
carry out appropriate operation on the MockServer
Supported requests are
-
MockServerRequest.START - On receiving this request, the invocation
handler will start the MockServer
MockServerRequest.STOP - On receiving this request, the invocation
handler will stop the MockServer
- Specified by:
invoke in interface org.jboss.remoting.ServerInvocationHandler
- Throws:
{@link - IllegalArgumentException} If the invocationRequest
is not supported
java.lang.Throwable- See Also:
ServerInvocationHandler.invoke(org.jboss.remoting.InvocationRequest)
removeListener
public void removeListener(org.jboss.remoting.callback.InvokerCallbackHandler callbackHandler)
- Specified by:
removeListener in interface org.jboss.remoting.ServerInvocationHandler
- See Also:
ServerInvocationHandler.removeListener(org.jboss.remoting.callback.InvokerCallbackHandler)
setInvoker
public void setInvoker(org.jboss.remoting.ServerInvoker invoker)
- Specified by:
setInvoker in interface org.jboss.remoting.ServerInvocationHandler
- See Also:
ServerInvocationHandler.setInvoker(org.jboss.remoting.ServerInvoker)
setMBeanServer
public void setMBeanServer(javax.management.MBeanServer server)
- Specified by:
setMBeanServer in interface org.jboss.remoting.ServerInvocationHandler
- See Also:
ServerInvocationHandler.setMBeanServer(javax.management.MBeanServer)