Class AbstractAmdServant

    • Field Detail

      • log

        protected final org.slf4j.Logger log
      • service

        protected ome.api.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.
      • ctx

        protected ome.system.OmeroContext ctx
    • Constructor Detail

      • AbstractAmdServant

        public AbstractAmdServant​(ome.api.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 onSetOmeroContext(OmeroContext)
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException
      • onSetOmeroContext

        public void onSetOmeroContext​(ome.system.OmeroContext context)
                               throws java.lang.Exception
        To be overridden by subclasses.
        Throws:
        java.lang.Exception
      • applyHardWiredInterceptors

        public final void applyHardWiredInterceptors​(java.util.List<ome.logic.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​(java.lang.Object __cb,
                                               Ice.Current __current,
                                               java.lang.Object... args)
      • callInvokerOnMappedArgs

        public final void callInvokerOnMappedArgs​(IceMapper mapper,
                                                  java.lang.Object __cb,
                                                  Ice.Current __current,
                                                  java.lang.Object... args)
      • runnableCall

        public final void runnableCall​(Ice.Current __current,
                                       Task r)
      • safeRunnableCall

        public final <R> void safeRunnableCall​(Ice.Current __current,
                                               java.lang.Object cb,
                                               boolean isVoid,
                                               java.util.concurrent.Callable<R> callable)
      • executorWorkCall

        public final void executorWorkCall​(ome.services.util.Executor.Work work)