Starting location for access to all OmeroApi services. When working with JBoss over RMI, the ServiceFactory is a client-side object:
ome.system.ServiceFactory sf = new ome.system.ServiceFactory(); sf = new ServiceFactory(new ome.system.Login("user","password")); sf = new ServiceFactory(new ome.system.Server("localhost")); // etc.
As of milestone:3.0-Beta3, the ServiceFactory also interacts with the OmeroSessions API, and transparently creates a session for you to preserve backwards compatibility.
When working with OmeroBlitz, the ServiceFactory is created on the server, and a proxy is returned to the client.
import omero c = omero.client() sf = c.createSession("username", "password");
See also:
- RMI Implementation : source:trunk/components/common/src/ome/system/ServiceFactory.java
- Ice Definition : source:trunk/components/blitz/resources/omero/API.ice
- Ice Implementation : source:trunk/components/blitz/src/ome/services/blitz/impl/ServiceFactoryI.java
