Package ome.tools.spring
Class InternalServiceFactory
- java.lang.Object
-
- ome.system.ServiceFactory
-
- ome.tools.spring.InternalServiceFactory
-
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
public class InternalServiceFactory extends ome.system.ServiceFactory implements org.springframework.context.ApplicationContextAware
subclass of ome.system.ServiceFactory which retrieves unmanaged ("internal")service-instances. These have fewer (or no) layers of AOP interceptors wrapping them.- Since:
- 1.0
-
-
Field Summary
-
Fields inherited from class ome.system.ServiceFactory
ctx
-
-
Constructor Summary
Constructors Constructor Description InternalServiceFactory()default construtorInternalServiceFactory(ome.system.OmeroContext omeroContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringgetDefaultContext()returns null to prevent the lookup of any context, but rather wait on injection as aApplicationContextAwareprotected java.lang.StringgetPrefix()voidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext)simple injector for theApplicationContextjava.lang.StringtoString()-
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
-
-
-
-
Constructor Detail
-
InternalServiceFactory
public InternalServiceFactory()
default construtor
-
InternalServiceFactory
public InternalServiceFactory(ome.system.OmeroContext omeroContext)
- See Also:
ServiceFactory(OmeroContext)
-
-
Method Detail
-
getPrefix
protected java.lang.String getPrefix()
- Overrides:
getPrefixin 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:
getDefaultContextin classome.system.ServiceFactory
-
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
simple injector for theApplicationContext- Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-