Package ome.tools.spring
Class ManagedServiceFactory
- java.lang.Object
-
- ome.system.ServiceFactory
-
- ome.tools.spring.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 managedservice-
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
-
-
Constructor Summary
Constructors Constructor Description ManagedServiceFactory()
-
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 aApplicationContextAware
protected java.lang.String
getPrefix()
void
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
simple injector for theApplicationContext
-
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
-
-
-
-
Method Detail
-
getPrefix
protected java.lang.String getPrefix()
- Overrides:
getPrefix
in classome.system.ServiceFactory
-
getDefaultContext
protected java.lang.String getDefaultContext()
returns null to prevent the lookup of any context, but rather wait on injection as aApplicationContextAware
- Overrides:
getDefaultContext
in classome.system.ServiceFactory
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
simple injector for theApplicationContext
- Specified by:
setApplicationContext
in interfaceorg.springframework.context.ApplicationContextAware
- Throws:
org.springframework.beans.BeansException
-
-