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