ome.tools.spring
Class InternalServiceFactory

java.lang.Object
  extended by ome.system.ServiceFactory
      extended by ome.tools.spring.InternalServiceFactory
All Implemented Interfaces:
org.springframework.context.ApplicationContextAware

public class InternalServiceFactory
extends 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
Version:
1.0 (Internal version: $Rev$ $Date$)
Author:
Josh Moore      josh.moore@gmx.de

Field Summary
 
Fields inherited from class ome.system.ServiceFactory
ctx
 
Constructor Summary
InternalServiceFactory()
          default construtor
InternalServiceFactory(OmeroContext omeroContext)
           
 
Method Summary
protected  String getDefaultContext()
          returns null to prevent the lookup of any context, but rather wait on injection as a ApplicationContextAware
protected  String getPrefix()
          used by ServiceFactory.getServiceByClass(Class) to find the correct service proxy in the ServiceFactory.ctx
 void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
          simple injector for the ApplicationContext
 String toString()
           
 
Methods inherited from class ome.system.ServiceFactory
closeSession, createJobHandle, createRawFileStore, createRawPixelsStore, createRenderingEngine, createSearchService, createThumbnailService, getAdminService, getAnalysisService, getConfigService, getContainerService, getContext, 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, wait, wait, wait
 

Constructor Detail

InternalServiceFactory

public InternalServiceFactory()
default construtor


InternalServiceFactory

public InternalServiceFactory(OmeroContext omeroContext)
See Also:
ServiceFactory.ServiceFactory(OmeroContext)
Method Detail

getPrefix

protected String getPrefix()
Description copied from class: ServiceFactory
used by ServiceFactory.getServiceByClass(Class) to find the correct service proxy in the ServiceFactory.ctx

Overrides:
getPrefix in class ServiceFactory
Returns:
a String, usually "internal-" or "managed-"

getDefaultContext

protected String getDefaultContext()
returns null to prevent the lookup of any context, but rather wait on injection as a ApplicationContextAware

Overrides:
getDefaultContext in class ServiceFactory
Returns:
name of default context as found in beanRefContext.xml.

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

toString

public String toString()
Overrides:
toString in class Object


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

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