public abstract class AbstractAmdServant extends java.lang.Object implements org.springframework.context.ApplicationContextAware
throttled implementation base class which can be
used by _ServiceInterfaceOperations implementors and injected into a
tie servant.| Modifier and Type | Field and Description |
|---|---|
protected BlitzExecutor |
be |
protected ome.system.OmeroContext |
ctx |
protected ServantHolder |
holder |
protected IceMethodInvoker |
invoker
If a service is provided, then an invoker will be created to cache all of
its methods.
|
protected org.slf4j.Logger |
log |
protected ome.api.ServiceInterface |
service
If there is no undering ome.* service, then this value can be null.
|
| Constructor and Description |
|---|
AbstractAmdServant(ome.api.ServiceInterface service,
BlitzExecutor be) |
protected final org.slf4j.Logger log
protected final BlitzExecutor be
protected ome.api.ServiceInterface service
protected IceMethodInvoker invoker
protected ome.system.OmeroContext ctx
protected ServantHolder holder
public AbstractAmdServant(ome.api.ServiceInterface service, BlitzExecutor be)
public void setHolder(ServantHolder holder)
ServantHolder for the current session so that on
AbstractCloseableAmdServant.close_async(AMD_StatefulServiceInterface_close, Current)
it will be possible to cleanup the resources.holder - public final void setApplicationContext(org.springframework.context.ApplicationContext ctx) throws org.springframework.beans.BeansException
IceMethodInvoker for this instance if service
is non-null. Otherwise gives subclasses a chance to use the OmeroContext
via onSetOmeroContext(OmeroContext)setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onSetOmeroContext(ome.system.OmeroContext context) throws java.lang.Exception
java.lang.Exceptionpublic final void applyHardWiredInterceptors(java.util.List<ome.logic.HardWiredInterceptor> cptors, AopContextInitializer initializer)
public final void callInvokerOnRawArgs(java.lang.Object __cb,
Ice.Current __current,
java.lang.Object... args)
public final void callInvokerOnMappedArgs(IceMapper mapper, java.lang.Object __cb, Ice.Current __current, java.lang.Object... args)
public final void runnableCall(Ice.Current __current, Task r)
public final <R> void safeRunnableCall(Ice.Current __current, java.lang.Object cb, boolean isVoid, java.util.concurrent.Callable<R> callable)
public final void executorWorkCall(ome.services.util.Executor.Work work)
public final void activate_async(AMD_StatefulServiceInterface_activate __cb, Ice.Current __current)
public final void passivate_async(AMD_StatefulServiceInterface_passivate __cb, Ice.Current __current)
public final void getCurrentEventContext_async(AMD_StatefulServiceInterface_getCurrentEventContext __cb, Ice.Current __current) throws ServerError
ServerError