public class SpringServiceContext extends org.granite.tide.TideServiceContext implements ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
springContext |
| Constructor and Description |
|---|
SpringServiceContext() |
SpringServiceContext(ApplicationContext springContext) |
| Modifier and Type | Method and Description |
|---|---|
protected Set<Class<?>> |
buildComponentClasses(Object bean) |
Object |
findComponent(String componentName,
Class<?> componentClass) |
Set<Class<?>> |
findComponentClasses(String componentName,
Class<?> componentClass) |
protected org.granite.tide.async.AsyncPublisher |
getAsyncPublisher() |
protected ApplicationContext |
getSpringContext() |
protected org.granite.tide.TidePersistenceManager |
getTidePersistenceManager(boolean create)
Create a TidePersistenceManager
|
protected boolean |
isBeanAnnotationPresent(Object bean,
Class<? extends Annotation> annotationClass) |
protected boolean |
isBeanMethodAnnotationPresent(Object bean,
String methodName,
Class<?>[] methodArgTypes,
Class<? extends Annotation> annotationClass) |
org.granite.tide.IInvocationResult |
postCall(org.granite.messaging.service.ServiceInvocationContext context,
Object result,
String componentName,
Class<?> componentClass) |
void |
postCallFault(org.granite.messaging.service.ServiceInvocationContext context,
Throwable t,
String componentName,
Class<?> componentClass) |
void |
prepareCall(org.granite.messaging.service.ServiceInvocationContext context,
org.granite.tide.IInvocationCall c,
String componentName,
Class<?> componentClass) |
void |
setApplicationContext(ApplicationContext springContext) |
void |
setEntityManagerFactoryBeanName(String beanName) |
void |
setPersistenceManagerBeanName(String beanName) |
protected transient ApplicationContext springContext
public SpringServiceContext() throws org.granite.messaging.service.ServiceException
org.granite.messaging.service.ServiceExceptionpublic SpringServiceContext(ApplicationContext springContext) throws org.granite.messaging.service.ServiceException
org.granite.messaging.service.ServiceExceptionpublic void setApplicationContext(ApplicationContext springContext)
setApplicationContext in interface ApplicationContextAwareprotected ApplicationContext getSpringContext()
protected org.granite.tide.async.AsyncPublisher getAsyncPublisher()
getAsyncPublisher in class org.granite.tide.TideServiceContextpublic Object findComponent(String componentName, Class<?> componentClass)
findComponent in class org.granite.tide.TideServiceContextpublic Set<Class<?>> findComponentClasses(String componentName, Class<?> componentClass)
findComponentClasses in class org.granite.tide.TideServiceContextprotected Set<Class<?>> buildComponentClasses(Object bean)
protected boolean isBeanAnnotationPresent(Object bean, Class<? extends Annotation> annotationClass)
protected boolean isBeanMethodAnnotationPresent(Object bean, String methodName, Class<?>[] methodArgTypes, Class<? extends Annotation> annotationClass)
public void prepareCall(org.granite.messaging.service.ServiceInvocationContext context, org.granite.tide.IInvocationCall c, String componentName, Class<?> componentClass)
prepareCall in class org.granite.tide.TideServiceContextpublic org.granite.tide.IInvocationResult postCall(org.granite.messaging.service.ServiceInvocationContext context, Object result, String componentName, Class<?> componentClass)
postCall in class org.granite.tide.TideServiceContextpublic void postCallFault(org.granite.messaging.service.ServiceInvocationContext context, Throwable t, String componentName, Class<?> componentClass)
postCallFault in class org.granite.tide.TideServiceContextpublic void setEntityManagerFactoryBeanName(String beanName)
public void setPersistenceManagerBeanName(String beanName)
protected org.granite.tide.TidePersistenceManager getTidePersistenceManager(boolean create)
getTidePersistenceManager in class org.granite.tide.TideServiceContextcreate - create if not existent (can be false for use in entity merge)