public class ServiceFactory extends Object
OmeroContext
Modifier and Type | Field and Description |
---|---|
protected OmeroContext |
ctx
the
context instance which this
ServiceFactory uses to look up all of its state. |
Constructor and Description |
---|
ServiceFactory()
default constructor which obtains the global static
client context from
OmeroContext . |
ServiceFactory(Login login)
constructor which obtains a new (non-static)
client context , passing
in the Properties representation of the Login for
configuration. |
ServiceFactory(OmeroContext context)
constructor which uses the provided
OmeroContext for 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 the Properties representation of the Server for
configuration. |
ServiceFactory(Server server,
Login login)
constructor which obtains a new (non-static)
client context , passing
in the Properties representation of both the Server and
the Login for configuration. |
ServiceFactory(String contextName)
constructor which finds the global static
OmeroContext with 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
ApiUsageException
public void setSession(Session session) throws ApiUsageException
ApiUsageException
public void closeSession() throws ApiUsageException
ApiUsageException
protected 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 ctx
String
, usually "internal-" or "managed-"
Version: 5.2.4-ice35-b23
Copyright © 2016 The University of Dundee & Open Microscopy Environment. All Rights Reserved.