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 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(java.util.List<HardWiredInterceptor> cptors,
AopContextInitializer initializer)
Applies the hard-wired intercepting to this instance.
|
void |
callInvokerOnMappedArgs(IceMapper mapper,
java.lang.Object __cb,
Ice.Current __current,
java.lang.Object... args) |
void |
callInvokerOnRawArgs(java.lang.Object __cb,
Ice.Current __current,
java.lang.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,
java.lang.Object cb,
boolean isVoid,
java.util.concurrent.Callable<R> callable) |
void |
setApplicationContext(org.springframework.context.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(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.ApplicationContextAware
org.springframework.beans.BeansException
public void onSetOmeroContext(OmeroContext context) throws java.lang.Exception
java.lang.Exception
public final void applyHardWiredInterceptors(java.util.List<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(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.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.