ome.services.blitz.impl
Class AbstractAmdServant

java.lang.Object
  extended by ome.services.blitz.impl.AbstractAmdServant
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware
Direct Known Subclasses:
AdminI, ConfigI, ContainerI, DeleteI, ExporterI, JobHandleI, LdapI, LicenseI, MetadataI, MetadataStoreI, PixelsI, ProjectionI, QueryI, RawFileStoreI, RawPixelsStoreI, RenderingEngineI, RenderingSettingsI, RepositoryInfoI, RoiI, ScriptI, SearchI, SessionI, SharedResourcesI, ShareI, ThumbnailStoreI, TimelineI, TypesI, UpdateI

public abstract class AbstractAmdServant
extends Object
implements org.springframework.context.ApplicationContextAware

throttled implementation base class which can be used by _ServiceInterfaceOperations implementors and injected into a tie servant.

Since:
3.0-Beta4
Author:
Josh Moore, josh at glencoesoftware.com

Field Summary
protected  BlitzExecutor be
           
protected  IceMethodInvoker invoker
          If a service is provided, then an invoker will be created to cache all of its methods.
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 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 onSetOmeroContext(OmeroContext context)
          To be overridden by subclasses.
 void runnableCall(Ice.Current __current, Runnable r)
           
 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

be

protected final BlitzExecutor be

service

protected ServiceInterface service
If there is no undering ome.* service, then this value can be null.


invoker

protected IceMethodInvoker invoker
If a service is provided, then an invoker will be created to cache all of its methods.

Constructor Detail

AbstractAmdServant

public AbstractAmdServant(ServiceInterface service,
                          BlitzExecutor be)
Method Detail

setApplicationContext

public final void setApplicationContext(org.springframework.context.ApplicationContext ctx)
                                 throws org.springframework.beans.BeansException
Creates an IceMethodInvoker for this instance if service is non-null. Otherwise gives subclasses a chance to use the OmeroContext via #onSetContext(OmeroContext)

Specified by:
setApplicationContext in interface org.springframework.context.ApplicationContextAware
Throws:
org.springframework.beans.BeansException

onSetOmeroContext

public void onSetOmeroContext(OmeroContext context)
                       throws Exception
To be overridden by subclasses.

Throws:
Exception

applyHardWiredInterceptors

public final void applyHardWiredInterceptors(List<HardWiredInterceptor> cptors,
                                             AopContextInitializer initializer)
Applies the hard-wired intercepting to this instance. It is not possible to configure hard-wired interceptors in Spring, instead they must be passed in at runtime from a properly compiled class.


callInvokerOnRawArgs

public final void callInvokerOnRawArgs(Object __cb,
                                       Ice.Current __current,
                                       Object... args)

callInvokerOnMappedArgs

public final void callInvokerOnMappedArgs(IceMapper mapper,
                                          Object __cb,
                                          Ice.Current __current,
                                          Object... args)

runnableCall

public final void runnableCall(Ice.Current __current,
                               Runnable r)

executorWorkCall

public final void executorWorkCall(Executor.Work work)


OmeroJava Api

Version: Beta-4.1.1-r5927-b91

Copyright © 2009 The University of Dundee. All Rights Reserved.