public class SpringServiceContext extends TideServiceContext implements ApplicationContextAware
| Modifier and Type | Field and Description |
|---|---|
protected ApplicationContext |
springContext |
COMPONENT_ATTR, COMPONENT_CLASS_ATTR, EMPTY_ARGS| 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 AsyncPublisher |
getAsyncPublisher() |
protected ApplicationContext |
getSpringContext() |
protected TidePersistenceManager |
getTidePersistenceManager(boolean create)
Create a TidePersistenceManager
|
protected Object |
internalFindComponent(String componentName,
Class<?> componentClass) |
protected boolean |
isBeanAnnotationPresent(Object bean,
Class<? extends Annotation> annotationClass) |
protected boolean |
isBeanMethodAnnotationPresent(Object bean,
String methodName,
Class<?>[] methodArgTypes,
Class<? extends Annotation> annotationClass) |
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 |
setApplicationContext(ApplicationContext springContext) |
void |
setEntityManagerFactoryBeanName(String beanName) |
void |
setPersistenceManagerBeanName(String beanName) |
adjustInvokee, beforeMethodSearch, equals, getSessionId, initCall, isBeanAnnotationPresent, lazyInitialize, mergeExternal, mergeExternal, sendEvent, setSessionIdprotected transient ApplicationContext springContext
public SpringServiceContext() throws ServiceException
ServiceExceptionpublic SpringServiceContext(ApplicationContext springContext) throws ServiceException
ServiceExceptionpublic void setApplicationContext(ApplicationContext springContext)
setApplicationContext in interface ApplicationContextAwareprotected ApplicationContext getSpringContext()
protected AsyncPublisher getAsyncPublisher()
getAsyncPublisher in class TideServiceContextpublic Object findComponent(String componentName, Class<?> componentClass)
findComponent in class TideServiceContextprotected Object internalFindComponent(String componentName, Class<?> componentClass)
public Set<Class<?>> findComponentClasses(String componentName, Class<?> componentClass)
findComponentClasses in class 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(ServiceInvocationContext context, IInvocationCall c, String componentName, Class<?> componentClass)
prepareCall in class TideServiceContextpublic IInvocationResult postCall(ServiceInvocationContext context, Object result, String componentName, Class<?> componentClass)
postCall in class TideServiceContextpublic void postCallFault(ServiceInvocationContext context, Throwable t, String componentName, Class<?> componentClass)
postCallFault in class TideServiceContextpublic void setEntityManagerFactoryBeanName(String beanName)
public void setPersistenceManagerBeanName(String beanName)
protected TidePersistenceManager getTidePersistenceManager(boolean create)
getTidePersistenceManager in class TideServiceContextcreate - create if not existent (can be false for use in entity merge)