|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.services.blitz.impl.AbstractAmdServant
public abstract class AbstractAmdServant
throttled
implementation base class which can be
used by _ServiceInterfaceOperations
implementors and injected into a
tie servant.
Field Summary | |
---|---|
protected BlitzExecutor |
be
|
protected OmeroContext |
ctx
|
protected IceMethodInvoker |
invoker
If a service is provided, then an invoker will be created to cache all of its methods. |
protected org.apache.commons.logging.Log |
log
|
protected ServiceInterface |
service
If there is no undering ome.* service, then this value can be null. |
Constructor Summary | |
---|---|
AbstractAmdServant(ServiceInterface service,
BlitzExecutor be)
|
Method Summary | ||
---|---|---|
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 |
close_async(omero.api.AMD_StatefulServiceInterface_close __cb,
Ice.Current __current)
SessionHandler also
specially catches close() calls, but cannot remove the servant
from the ObjectAdapter and thereby prevent any
further communication. |
|
void |
close(Ice.Current __current)
|
|
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)
|
|
protected void |
preClose()
|
|
void |
runnableCall(Ice.Current __current,
Task r)
|
|
|
safeRunnableCall(Ice.Current __current,
Object cb,
boolean isVoid,
Callable<R> callable)
|
|
void |
setApplicationContext(org.springframework.context.ApplicationContext ctx)
Creates an IceMethodInvoker for this instance if service
is non-null. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected final org.apache.commons.logging.Log log
protected final BlitzExecutor be
protected ServiceInterface service
protected IceMethodInvoker invoker
protected OmeroContext ctx
Constructor Detail |
---|
public AbstractAmdServant(ServiceInterface service, BlitzExecutor be)
Method Detail |
---|
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 #onSetContext(OmeroContext)
setApplicationContext
in interface org.springframework.context.ApplicationContextAware
org.springframework.beans.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
public final void close(Ice.Current __current)
public final void close_async(omero.api.AMD_StatefulServiceInterface_close __cb, Ice.Current __current)
SessionHandler
also
specially catches close() calls, but cannot remove the servant
from the ObjectAdapter
and thereby prevent any
further communication. Once the invocation is finished, though,
it is possible to raise the message and have the servant
cleaned up.
ticket:1855
protected void preClose()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.