public abstract class TideServiceContext extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
static String |
COMPONENT_ATTR |
static String |
COMPONENT_CLASS_ATTR |
protected static Object[] |
EMPTY_ARGS |
| Constructor and Description |
|---|
TideServiceContext() |
| Modifier and Type | Method and Description |
|---|---|
Object |
adjustInvokee(Object instance,
String componentName,
Set<Class<?>> componentClasses) |
Object[] |
beforeMethodSearch(Object instance,
String methodName,
Object[] args) |
protected boolean |
equals(Object obj1,
Object obj2) |
abstract Object |
findComponent(String componentName,
Class<?> componentClass) |
abstract Set<Class<?>> |
findComponentClasses(String componentName,
Class<?> componentClass) |
protected abstract AsyncPublisher |
getAsyncPublisher() |
String |
getSessionId() |
protected abstract TidePersistenceManager |
getTidePersistenceManager(boolean create)
Create a TidePersistenceManager
|
void |
initCall() |
protected boolean |
isBeanAnnotationPresent(Collection<Class<?>> beanClasses,
String methodName,
Class<?>[] methodArgTypes,
Class<? extends Annotation> annotationClass) |
Object |
lazyInitialize(Object entity,
String[] propertyNames)
Initialize the lazy property for the passed in entity.
|
protected Object |
mergeExternal(ClassGetter classGetter,
Object obj,
Object previous,
Object owner,
String propertyName) |
Object |
mergeExternal(Object obj,
Object previous) |
abstract IInvocationResult |
postCall(ServiceInvocationContext context,
Object result,
String componentName,
Class<?> componentClass) |
void |
postCallFault(ServiceInvocationContext context,
Throwable t,
String componentName,
Class<?> componentClass) |
abstract void |
prepareCall(ServiceInvocationContext context,
IInvocationCall call,
String componentName,
Class<?> componentClass) |
void |
sendEvent(String componentName,
Class<?> componentClass) |
void |
setSessionId(String sessionId) |
protected static final Object[] EMPTY_ARGS
public static final String COMPONENT_ATTR
public static final String COMPONENT_CLASS_ATTR
public TideServiceContext() throws ServiceException
ServiceExceptionpublic String getSessionId()
public void setSessionId(String sessionId)
public void initCall()
public Object adjustInvokee(Object instance, String componentName, Set<Class<?>> componentClasses)
public Object[] beforeMethodSearch(Object instance, String methodName, Object[] args)
public abstract Object findComponent(String componentName, Class<?> componentClass)
public abstract Set<Class<?>> findComponentClasses(String componentName, Class<?> componentClass)
public abstract void prepareCall(ServiceInvocationContext context, IInvocationCall call, String componentName, Class<?> componentClass)
public abstract IInvocationResult postCall(ServiceInvocationContext context, Object result, String componentName, Class<?> componentClass)
public void postCallFault(ServiceInvocationContext context, Throwable t, String componentName, Class<?> componentClass)
protected abstract AsyncPublisher getAsyncPublisher()
protected boolean isBeanAnnotationPresent(Collection<Class<?>> beanClasses, String methodName, Class<?>[] methodArgTypes, Class<? extends Annotation> annotationClass)
protected abstract TidePersistenceManager getTidePersistenceManager(boolean create)
create - create if not existent (can be false for use in entity merge)public Object mergeExternal(Object obj, Object previous)
protected Object mergeExternal(ClassGetter classGetter, Object obj, Object previous, Object owner, String propertyName)
public Object lazyInitialize(Object entity, String[] propertyNames)
entity - the entity that has a lazy relationshippropertyNames - the properties of the entity that has been marked lazy