org.granite.messaging.service
Class EjbServiceInvoker

java.lang.Object
  extended by org.granite.messaging.service.ServiceInvoker<EjbServiceFactory>
      extended by org.granite.messaging.service.EjbServiceInvoker

public class EjbServiceInvoker
extends ServiceInvoker<EjbServiceFactory>

Author:
Franck WOLFF

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
EjbServiceInvoker(Destination destination, EjbServiceFactory factory)
           
 
Method Summary
protected  Object afterInvocation(ServiceInvocationContext context, Object result)
          Called after a successful invocation of the service's method.
protected  void afterInvocationError(ServiceInvocationContext context, Throwable error)
          Called after a failed invocation of the service's method, possibly after a new attempt (see ServiceInvoker.retryInvocation(ServiceInvocationContext, Throwable).
 EjbServiceMetadata getMetadata()
           
 
Methods inherited from class org.granite.messaging.service.ServiceInvoker
adjustInvokee, beforeInvocation, 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

EjbServiceInvoker

public EjbServiceInvoker(Destination destination,
                         EjbServiceFactory factory)
                  throws ServiceException
Throws:
ServiceException
Method Detail

getMetadata

public EjbServiceMetadata getMetadata()

afterInvocationError

protected void afterInvocationError(ServiceInvocationContext context,
                                    Throwable error)
Description copied from class: ServiceInvoker
Called after a failed invocation of the service's method, possibly after a new attempt (see ServiceInvoker.retryInvocation(ServiceInvocationContext, Throwable). Does nothing by default.

Overrides:
afterInvocationError in class ServiceInvoker<EjbServiceFactory>
Parameters:
context - the current invocation context.
error - the exception that caused the invocation failure.

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<EjbServiceFactory>
Parameters:
context - the current invocation context.
result - the result of the invocation (returned by the called method).