org.granite.tide.ejb
Class EjbServiceContext

java.lang.Object
  extended by org.granite.tide.TideServiceContext
      extended by org.granite.tide.ejb.EjbServiceContext
All Implemented Interfaces:
Serializable

public class EjbServiceContext
extends TideServiceContext

Author:
William DRAI
See Also:
Serialized Form

Field Summary
static String CAPITALIZED_DESTINATION_ID
           
static String DESTINATION_ID
           
 
Fields inherited from class org.granite.tide.TideServiceContext
COMPONENT_ATTR, COMPONENT_CLASS_ATTR, EMPTY_ARGS
 
Constructor Summary
EjbServiceContext()
           
EjbServiceContext(String lookup)
           
 
Method Summary
 Object callComponent(Method method, Object... args)
           
 Object findComponent(String componentName, Class<?> componentClass)
           
 Set<Class<?>> findComponentClasses(String componentName, Class<?> componentClass)
           
protected  AsyncPublisher getAsyncPublisher()
           
 Set<String> getRemoteObservers()
           
protected  TidePersistenceManager getTidePersistenceManager(boolean create)
          Create a TidePersistenceManager
 IInvocationResult postCall(ServiceInvocationContext context, Object result, String componentName, Class<?> componentClass)
           
 void postCallFault(ServiceInvocationContext context, Throwable t, String componentName, Class<?> componentClass)
           
 void prepareCall(ServiceInvocationContext context, IInvocationCall c, String componentName, Class<?> componentClass)
           
 void setEntityManagerFactoryJndiName(String entityManagerFactoryJndiName)
           
 void setEntityManagerJndiName(String entityManagerJndiName)
           
 
Methods inherited from class org.granite.tide.TideServiceContext
adjustInvokee, beforeMethodSearch, equals, getSessionId, initCall, lazyInitialize, mergeExternal, mergeExternal, sendEvent, setSessionId
 
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

EjbServiceContext

public EjbServiceContext()
                  throws ServiceException
Throws:
ServiceException

EjbServiceContext

public EjbServiceContext(String lookup)
                  throws ServiceException
Throws:
ServiceException
Method Detail

getAsyncPublisher

protected AsyncPublisher getAsyncPublisher()
Specified by:
getAsyncPublisher in class TideServiceContext

setEntityManagerFactoryJndiName

public void setEntityManagerFactoryJndiName(String entityManagerFactoryJndiName)

setEntityManagerJndiName

public void setEntityManagerJndiName(String entityManagerJndiName)

getTidePersistenceManager

protected TidePersistenceManager getTidePersistenceManager(boolean create)
Create a TidePersistenceManager

Specified by:
getTidePersistenceManager in class TideServiceContext
Parameters:
create - create if not existent (can be false for use in entity merge)
Returns:
a TidePersistenceManager

callComponent

public Object callComponent(Method method,
                            Object... args)
                     throws Exception
Throws:
Exception

getRemoteObservers

public Set<String> getRemoteObservers()

findComponent

public Object findComponent(String componentName,
                            Class<?> componentClass)
Specified by:
findComponent in class TideServiceContext

findComponentClasses

public Set<Class<?>> findComponentClasses(String componentName,
                                          Class<?> componentClass)
Specified by:
findComponentClasses in class TideServiceContext

prepareCall

public void prepareCall(ServiceInvocationContext context,
                        IInvocationCall c,
                        String componentName,
                        Class<?> componentClass)
Specified by:
prepareCall in class TideServiceContext

postCall

public IInvocationResult postCall(ServiceInvocationContext context,
                                  Object result,
                                  String componentName,
                                  Class<?> componentClass)
Specified by:
postCall in class TideServiceContext

postCallFault

public void postCallFault(ServiceInvocationContext context,
                          Throwable t,
                          String componentName,
                          Class<?> componentClass)
Overrides:
postCallFault in class TideServiceContext