org.granite.seam
Class SeamServiceInvoker

java.lang.Object
  extended by org.granite.messaging.service.ServiceInvoker<SeamServiceFactory>
      extended by org.granite.seam.SeamServiceInvoker

public class SeamServiceInvoker
extends ServiceInvoker<SeamServiceFactory>

Author:
Cameron INGRAM, Venkat DANDA

Field Summary
static String CAPITALIZED_DESTINATION_ID
           
static String DESTINATION_ID
           
 
Fields inherited from class org.granite.messaging.service.ServiceInvoker
destination, factory, invocationListeners, invokee
 
Constructor Summary
SeamServiceInvoker(Destination destination, SeamServiceFactory factory, Object instance)
           
 
Method Summary
protected  Object afterInvocation(ServiceInvocationContext context, Object result)
          Called after a successful invocation of the service's method.
protected  void beforeInvocation(ServiceInvocationContext context)
          Called before the invocation of the services method.
 
Methods inherited from class org.granite.messaging.service.ServiceInvoker
adjustInvokee, afterInvocationError, beforeMethodSearch, invoke, retryInvocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CAPITALIZED_DESTINATION_ID

public static final String CAPITALIZED_DESTINATION_ID
See Also:
Constant Field Values

DESTINATION_ID

public static final String DESTINATION_ID
See Also:
Constant Field Values
Constructor Detail

SeamServiceInvoker

public SeamServiceInvoker(Destination destination,
                          SeamServiceFactory factory,
                          Object instance)
                   throws ServiceException
Throws:
ServiceException
Method Detail

beforeInvocation

protected void beforeInvocation(ServiceInvocationContext context)
Description copied from class: ServiceInvoker
Called before the invocation of the services method. Does nothing by default.

Overrides:
beforeInvocation in class ServiceInvoker<SeamServiceFactory>
Parameters:
context - the current invocation context.

afterInvocation

protected Object afterInvocation(ServiceInvocationContext context,
                                 Object result)
Description copied from class: ServiceInvoker
Called after a successful invocation of the service's method. Does nothing by default.

Overrides:
afterInvocation in class ServiceInvoker<SeamServiceFactory>
Parameters:
context - the current invocation context.
result - the result of the invocation (returned by the called method).