public abstract class ServiceLocator extends Object
Example: Sample code for initializing ServiceLocator Properties props = new Properties(); //Specify Client mode: Local or Remote props.setProperty(ServiceLocator.CLIENT_MODE, ServiceLocator.REMOTE); ServiceLocator slocator = ServiceLocator.getInstance(props); RimService rimService = slocator.getRimService();
| Modifier and Type | Field and Description |
|---|---|
static String |
CLIENT_MODE
The name of the Properties to pass client mode value
|
static String |
LOCAL
The local client mode
|
static String |
REMOTE
The remote client mode
|
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceLocator() |
| Modifier and Type | Method and Description |
|---|---|
void |
closeContext()
Removes the rmi connection dedicated to the user but does not delete the
session tied to the user.
|
abstract AuditService |
getAuditService()
Gets the AuditService.
|
abstract ConcurrentProgService |
getConcurrentProgService()
Gets the ConcurrentProgService.
|
abstract CTBCacheService |
getCTBCacheService()
Gets the CTBCacheService.
|
abstract ETSService |
getETSService()
Gets the ETSService.
|
abstract IHEXDSConfigService |
getIHEXDSConfigService()
Gets the IHEXDSConfigService.
|
abstract IMPConfigAdminIntrService |
getIMPConfigAdminIntrService()
Gets the IMPConfigAdminIntrService.
|
abstract IMPConfigAdminService |
getIMPConfigAdminService()
Gets the IMPConfigAdminService.
|
abstract IMPService |
getIMPService()
Gets the IMPService.
|
static ServiceLocator |
getInstance()
Deprecated.
Replaced by
getInstance(Properties). This method is
not completely threadsafe. Use
getInstance(Properties) to ensure
thread safety. |
static ServiceLocator |
getInstance(Properties properties)
Provides the instance of ServiceLocator initialized with the client
properties
|
abstract oracle.hsgbu.hdr.hl7.InternalRimService |
getInternalRimService()
Gets the InternalRimService.
|
abstract MasterCatalogService |
getMasterCatalogService()
Gets the MasterCatalogService.
|
abstract MtkProductionLoadService |
getMtkProductionLoadService()
Gets the MtkProductionLoadService.
|
abstract MtkTestInternalService |
getMtkTestInternalService()
Gets the MtkTestInternalService.
|
abstract MtkTestService |
getMtkTestService()
Gets the MtkTestService.
|
abstract OIDService |
getOIDService()
Gets the OIDService.
|
abstract ProfileOptionService |
getProfileOptionService()
Gets the ProfileOptionService.
|
abstract RimService |
getRimService()
Gets RimService.
|
abstract SubmissionUnitService |
getSubmissionUnitService()
Gets the SubmissionUnitService.
|
void |
login(String identity,
String credential)
Validates the identity and the credential of the user.
|
public static final String REMOTE
public static final String LOCAL
public static final String CLIENT_MODE
public static ServiceLocator getInstance() throws CommonException
getInstance(Properties). This method is
not completely threadsafe. Use
getInstance(Properties) to ensure
thread safety.CommonExceptionpublic static ServiceLocator getInstance(Properties properties) throws CommonException
Example: Properties props = new Properties(); //Specify Client mode: Local or Remote props.setProperty(ServiceLocator.CLIENT_MODE,ServiceLocator.REMOTE); //Specify InitialContext and provider URL if HDR Authentication must be overridden. (not common) props.put(Context.INITIAL_CONTEXT_FACTORY,"com.evermind.server.rmi.RMIInitialContextFactory"); props.put(Context.PROVIDER_URL,"ormi://ap680ses.us.oracle.com:23800/hdr"); ServiceLocator sl = ServiceLocator.getInstance(props);
properties - a map of properties specifying client parameters.
ServiceLocator can accept the following special property:
CLIENT_MODE in addition to any standard propertyCommonExceptionpublic void login(String identity, String credential) throws CommonException
identity - as a String Valuecredential - as a String valueCommonExceptionpublic void closeContext()
throws CommonException
CommonExceptionpublic abstract ProfileOptionService getProfileOptionService() throws CommonException
CommonExceptionpublic abstract IMPConfigAdminService getIMPConfigAdminService() throws CommonException
CommonExceptionpublic abstract IMPService getIMPService() throws CommonException
CommonExceptionpublic abstract IMPConfigAdminIntrService getIMPConfigAdminIntrService() throws CommonException
CommonExceptionpublic abstract SubmissionUnitService getSubmissionUnitService() throws CommonException
CommonExceptionpublic abstract MasterCatalogService getMasterCatalogService() throws CommonException
CommonExceptionpublic abstract IHEXDSConfigService getIHEXDSConfigService() throws CommonException
CommonExceptionpublic abstract MtkTestService getMtkTestService() throws CommonException
CommonExceptionpublic abstract RimService getRimService() throws CommonException
CommonExceptionpublic abstract oracle.hsgbu.hdr.hl7.InternalRimService getInternalRimService()
throws CommonException
CommonExceptionpublic abstract MtkProductionLoadService getMtkProductionLoadService() throws CommonException
CommonExceptionpublic abstract MtkTestInternalService getMtkTestInternalService() throws CommonException
CommonExceptionpublic abstract OIDService getOIDService() throws CommonException
CommonExceptionpublic abstract ConcurrentProgService getConcurrentProgService() throws CommonException
CommonExceptionpublic abstract CTBCacheService getCTBCacheService() throws CommonException
CommonExceptionpublic abstract AuditService getAuditService() throws CommonException
CommonExceptionpublic abstract ETSService getETSService() throws CommonException
CommonExceptionHDR Glossary HDR Concept Lists HDR Exceptions HDR Programmer's Guide HDR Implementation Guide HDR Profile Options
Copyright © 2016, 2018, Oracle. All rights reserved