public class ServiceFactory extends Object
OmeroContext| Modifier and Type | Field and Description | 
|---|---|
| protected OmeroContext | ctxthe  context instancewhich thisServiceFactoryuses to look up all of its state. | 
| Constructor and Description | 
|---|
| ServiceFactory()default constructor which obtains the global static
  client contextfromOmeroContext. | 
| ServiceFactory(Login login)constructor which obtains a new (non-static)
  client context, passing
 in thePropertiesrepresentation of theLoginfor
 configuration. | 
| ServiceFactory(OmeroContext context)constructor which uses the provided  OmeroContextfor all
 loookups. | 
| ServiceFactory(Properties properties)constructor which obtains a new
  client context, passing
 in the provided properties for configuration. | 
| ServiceFactory(Server server)constructor which obtains a new (non-static)
  client context, passing
 in thePropertiesrepresentation of theServerfor
 configuration. | 
| ServiceFactory(Server server,
              Login login)constructor which obtains a new (non-static)
  client context, passing
 in thePropertiesrepresentation of both theServerand
 theLoginfor configuration. | 
| ServiceFactory(String contextName)constructor which finds the global static  OmeroContextwith the
 given name. | 
protected OmeroContext ctx
context instance which this
 ServiceFactory uses to look up all of its state.public ServiceFactory()
client context from
 OmeroContext. This can be done manually by calling
 OmeroContext.getClientContext()public ServiceFactory(Login login)
client context, passing
 in the Properties representation of the Login for
 configuration.Login.asProperties(), 
ServiceFactory(Properties)public ServiceFactory(Server server)
client context, passing
 in the Properties representation of the Server for
 configuration.Server.asProperties(), 
ServiceFactory(Properties)public ServiceFactory(Server server, Login login)
client context, passing
 in the Properties representation of both the Server and
 the Login for configuration.Login.asProperties(), 
ServiceFactory(Properties)public ServiceFactory(Properties properties)
client context, passing
 in the provided properties for configuration.public ServiceFactory(OmeroContext context)
OmeroContext for all
 loookups.public ServiceFactory(String contextName)
OmeroContext with the
 given name.@Deprecated public OmeroContext getContext()
public IAdmin getAdminService()
public IAnalysis getAnalysisService()
public IConfig getConfigService()
public IContainer getContainerService()
public IDelete getDeleteService()
public ILdap getLdapService()
public IPixels getPixelsService()
public IProjection getProjectionService()
public IQuery getQueryService()
public IShare getShareService()
public ITypes getTypesService()
public IUpdate getUpdateService()
public IRenderingSettings getRenderingSettingsService()
public IRepositoryInfo getRepositoryInfoService()
public IMetadata getMetadataService()
public JobHandle createJobHandle()
JobHandle proxy. This proxy will have to be
 initialized using JobHandle.attach(long) or
 JobHandle.submit(ome.model.jobs.Job).public RawPixelsStore createRawPixelsStore()
RawPixelsStore proxy. This proxy will have to be
 initialized using RawPixelsStore.setPixelsId(long, boolean)public RawFileStore createRawFileStore()
RawFileStore proxy. This proxy will have to be
 initialized using RawFileStore.setFileId(long)public RenderingEngine createRenderingEngine()
RenderingEngine proxy. This proxy will have to be
 initialized using RenderingEngine.lookupPixels(long) and
 RenderingEngine.load()public ThumbnailStore createThumbnailService()
ThumbnailStore proxy. This proxy will have to be
 initialized using ThumbnailStore.setPixelsId(long)public ISession getSessionService()
public Session getSession() throws ApiUsageException
ApiUsageExceptionpublic void setSession(Session session) throws ApiUsageException
ApiUsageExceptionpublic void closeSession()
                  throws ApiUsageException
ApiUsageExceptionprotected SessionInitializer getSessionInitializer()
public <T extends ServiceInterface> T getServiceByClass(Class<T> klass)
prefix and
 the class name of the service type.protected String getPrefix()
getServiceByClass(Class) to find the correct service
 proxy in the ctxString, usually "internal-" or "managed-"
                
                
Version: 5.2.1-ice35-b15
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.