Class ManagedServiceFactory

  • All Implemented Interfaces:
    org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware

    public class ManagedServiceFactory
    extends ome.system.ServiceFactory
    implements org.springframework.context.ApplicationContextAware
    subclass of ome.system.ServiceFactory which retrieves managed service-instances. These have all the necessary layers of AOP interceptors for proper functioning. In fact, the returned services behave almost exactly as if they were in an application server ("container").
    Since:
    1.0
    • Field Summary

      • Fields inherited from class ome.system.ServiceFactory

        ctx
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String getDefaultContext()
      returns null to prevent the lookup of any context, but rather wait on injection as a ApplicationContextAware
      protected java.lang.String getPrefix()  
      void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
      simple injector for the ApplicationContext
      • Methods inherited from class ome.system.ServiceFactory

        closeSession, createJobHandle, createRawFileStore, createRawPixelsStore, createRenderingEngine, createSearchService, createThumbnailService, getAdminService, getAnalysisService, getConfigService, getContainerService, getDeleteService, getLdapService, getMetadataService, getPixelsService, getProjectionService, getQueryService, getRenderingSettingsService, getRepositoryInfoService, getServiceByClass, getSession, getSessionInitializer, getSessionService, getShareService, getTypesService, getUpdateService, setSession
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ManagedServiceFactory

        public ManagedServiceFactory()
    • Method Detail

      • getPrefix

        protected java.lang.String getPrefix()
        Overrides:
        getPrefix in class ome.system.ServiceFactory
      • getDefaultContext

        protected java.lang.String getDefaultContext()
        returns null to prevent the lookup of any context, but rather wait on injection as a ApplicationContextAware
        Overrides:
        getDefaultContext in class ome.system.ServiceFactory
      • setApplicationContext

        public void setApplicationContext​(org.springframework.context.ApplicationContext applicationContext)
                                   throws org.springframework.beans.BeansException
        simple injector for the ApplicationContext
        Specified by:
        setApplicationContext in interface org.springframework.context.ApplicationContextAware
        Throws:
        org.springframework.beans.BeansException