public abstract class AbstractAmdServant extends Object implements 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 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 ServiceInterface |
service
If there is no undering ome.* service, then this value can be null.
|
Constructor and Description |
---|
AbstractAmdServant(ServiceInterface service,
BlitzExecutor be) |
Modifier and Type | Method and Description |
---|---|
void |
activate_async(omero.api.AMD_StatefulServiceInterface_activate __cb,
Ice.Current __current) |
void |
applyHardWiredInterceptors(List<HardWiredInterceptor> cptors,
AopContextInitializer initializer)
Applies the hard-wired intercepting to this instance.
|
void |
callInvokerOnMappedArgs(IceMapper mapper,
Object __cb,
Ice.Current __current,
Object... args) |
void |
callInvokerOnRawArgs(Object __cb,
Ice.Current __current,
Object... args) |
void |
executorWorkCall(Executor.Work work) |
void |
getCurrentEventContext_async(omero.api.AMD_StatefulServiceInterface_getCurrentEventContext __cb,
Ice.Current __current) |
void |
onSetOmeroContext(OmeroContext context)
To be overridden by subclasses.
|
void |
passivate_async(omero.api.AMD_StatefulServiceInterface_passivate __cb,
Ice.Current __current) |
void |
runnableCall(Ice.Current __current,
Task r) |
<R> void |
safeRunnableCall(Ice.Current __current,
Object cb,
boolean isVoid,
Callable<R> callable) |
void |
setApplicationContext(ApplicationContext ctx)
Creates an
IceMethodInvoker for this instance if service
is non-null. |
void |
setHolder(ServantHolder holder)
Sets the
ServantHolder for the current session so that on
AbstractCloseableAmdServant.close_async(AMD_StatefulServiceInterface_close, Current)
it will be possible to cleanup the resources. |
protected final org.slf4j.Logger log
protected final BlitzExecutor be
protected ServiceInterface service
protected IceMethodInvoker invoker
protected OmeroContext ctx
protected ServantHolder holder
public AbstractAmdServant(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(ApplicationContext ctx) throws 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 ApplicationContextAware
BeansException
public void onSetOmeroContext(OmeroContext context) throws Exception
Exception
public final void applyHardWiredInterceptors(List<HardWiredInterceptor> cptors, AopContextInitializer initializer)
public final void callInvokerOnRawArgs(Object __cb, Ice.Current __current, Object... args)
public final void callInvokerOnMappedArgs(IceMapper mapper, Object __cb, Ice.Current __current, Object... args)
public final void runnableCall(Ice.Current __current, Task r)
public final <R> void safeRunnableCall(Ice.Current __current, Object cb, boolean isVoid, Callable<R> callable)
public final void executorWorkCall(Executor.Work work)
public final void activate_async(omero.api.AMD_StatefulServiceInterface_activate __cb, Ice.Current __current)
public final void passivate_async(omero.api.AMD_StatefulServiceInterface_passivate __cb, Ice.Current __current)
public final void getCurrentEventContext_async(omero.api.AMD_StatefulServiceInterface_getCurrentEventContext __cb, Ice.Current __current) throws omero.ServerError
omero.ServerError
Version: 5.2.0-ice35-b12
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.