org.granite.messaging.service
Class SimpleServiceInvoker

java.lang.Object
  extended by org.granite.messaging.service.ServiceInvoker<SimpleServiceFactory>
      extended by org.granite.messaging.service.SimpleServiceInvoker

public class SimpleServiceInvoker
extends ServiceInvoker<SimpleServiceFactory>

Author:
Franck WOLFF

Field Summary
 
Fields inherited from class org.granite.messaging.service.ServiceInvoker
destination, factory, invocationListeners, invokee
 
Constructor Summary
protected SimpleServiceInvoker(Destination destination, SimpleServiceFactory factory)
           
 
Method Summary
protected  Object adjustInvokee(RemotingMessage request, String methodName, Object[] args)
          Called at the beginning of the ServiceInvoker.invoke(RemotingMessage) method.
 
Methods inherited from class org.granite.messaging.service.ServiceInvoker
afterInvocation, afterInvocationError, beforeInvocation, beforeMethodSearch, invoke, retryInvocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleServiceInvoker

protected SimpleServiceInvoker(Destination destination,
                               SimpleServiceFactory factory)
                        throws ServiceException
Throws:
ServiceException
Method Detail

adjustInvokee

protected Object adjustInvokee(RemotingMessage request,
                               String methodName,
                               Object[] args)
                        throws ServiceException
Description copied from class: ServiceInvoker
Called at the beginning of the ServiceInvoker.invoke(RemotingMessage) method. Give a chance to modify the the services (invokee) about to be called. Does nothing by default. The default invokee object is created by actual implementations of this abstract class.

Overrides:
adjustInvokee in class ServiceInvoker<SimpleServiceFactory>
Parameters:
request - the current remoting message (sent from Flex).
methodName - the name of the method to be called.
args - the method parameter values.
Returns:
the (possibly adjusted) invokee object.
Throws:
ServiceException - if anything goes wrong.