public class ServiceFactory
extends java.lang.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(java.util.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(java.lang.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(java.util.Properties properties)
client context
, passing
in the provided properties for configuration.public ServiceFactory(OmeroContext context)
OmeroContext
for all
loookups.public ServiceFactory(java.lang.String contextName)
OmeroContext
with the
given name.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 ome.model.meta.Session getSession() throws ome.conditions.ApiUsageException
ome.conditions.ApiUsageException
public void setSession(ome.model.meta.Session session) throws ome.conditions.ApiUsageException
ome.conditions.ApiUsageException
public void closeSession() throws ome.conditions.ApiUsageException
ome.conditions.ApiUsageException
protected SessionInitializer getSessionInitializer()
public <T extends ServiceInterface> T getServiceByClass(java.lang.Class<T> klass)
prefix
and
the class name of the service type.protected java.lang.String getPrefix()
getServiceByClass(Class)
to find the correct service
proxy in the ctx
String
, usually "internal-" or "managed-"protected java.lang.String getDefaultContext()
context
name is provided to the
constructor. Subclasses can override to allow for easier creation.