public final class Platform
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char |
PACKAGE_SEPARATOR_CHAR |
static java.lang.String |
SERVICE_DELEGATE_SUFFIX |
Modifier and Type | Method and Description |
---|---|
static javax.sql.DataSource |
getAuditDS() |
static java.lang.Object |
getBean(java.lang.Class beanType)
Gets the bean for a particular type
|
static oracle.iam.platform.utils.Configuration |
getConfiguration()
Returns a handle to OIM configuration so that you can retrieve various configuration data that is part of oim-config.xml
|
static javax.xml.parsers.DocumentBuilderFactory |
getDocumentBuilderFactory()
Returns a handle to DocumentBuilderFactory to perform XML related operations
|
static oracle.mds.core.MDSInstance |
getMDSInstance()
Returns the MDS Instance that can be used to retrieve component specific metadata
|
static javax.sql.DataSource |
getNonXADataSource()
Returns the Non-XA datasource for OIM.
|
static oracle.iam.platform.tx.OIMTransactionManager |
getOIMTransactionManager()
Returns transaction manager
|
static javax.sql.DataSource |
getOperationalDS()
Provides the XA DataSource for the OIM OperationalDS.
|
static java.lang.Object |
getService(java.lang.Class serviceClass)
Returns a handle to a Service available in an OIM .
|
static java.lang.Object |
getServiceForEventHandlers(java.lang.Class serviceClass,
java.lang.String contextKey,
java.lang.String contextType,
java.lang.String contextSubType,
java.util.HashMap contextValues)
Returns a handle to a Service available in an OIM .
|
static java.lang.Object |
getTargetImplementation(java.lang.Object obj,
java.lang.Class clazz) |
static org.eclipse.persistence.sessions.Session |
getToplinkSession()
Returns the Default Toplink Session that can be used to do database operations.
|
public static final java.lang.String SERVICE_DELEGATE_SUFFIX
public static final char PACKAGE_SEPARATOR_CHAR
public static javax.sql.DataSource getOperationalDS()
public static javax.sql.DataSource getNonXADataSource()
public static javax.sql.DataSource getAuditDS()
public static java.lang.Object getService(java.lang.Class serviceClass) throws oracle.iam.platform.utils.NoSuchServiceException
//Get a handle to the UserService (a Business Service) UserManager userService = Platform.getService(UserManager.class); //Get a handle to the OrchestrationEngine (Infrastructure Service) EntityManager entityMgr = Platform.getService(EntityManager.class);
serviceClass
- the Class object corresponding to the Service Interfaceoracle.iam.platform.utils.NoSuchServiceException
- if no such service handle is available in OIMpublic static java.lang.Object getServiceForEventHandlers(java.lang.Class serviceClass, java.lang.String contextKey, java.lang.String contextType, java.lang.String contextSubType, java.util.HashMap contextValues) throws oracle.iam.platform.utils.NoSuchServiceException
//Get a handle to the User Service (a Business Service) UserManager userService = Platform.getService(UserManager.class); //Get a handle to the OrchestrationEngine (Infrastructure Service) EntityManager entityMgr = Platform.getService(EntityManager.class);
serviceClass
- the Class object corresponding to the Service Interface.contextKey
- context key such as request key if request context, policy key if access policy context. Value can be nullcontextType
- Type of the context such as REQUEST, RECON, POLICY. Value has to be one of the values of Enum oracle.iam.platform.context.ContextManager.ContextTypes or nullcontextSubType
- Sub type information that can additionally identifies the context. Value can be nullcontextValues
- Values that should be set in this context. Key of the map should be a string and value should be a ContextAware object.
These will be available in the context as ContextAwareHashMap with key APIContext.oracle.iam.platform.utils.NoSuchServiceException
- if no such service handle is available in OIMpublic static java.lang.Object getBean(java.lang.Class beanType)
beanType
- the Class object for the bean typepublic static oracle.mds.core.MDSInstance getMDSInstance()
public static org.eclipse.persistence.sessions.Session getToplinkSession()
public static oracle.iam.platform.utils.Configuration getConfiguration()
public static oracle.iam.platform.tx.OIMTransactionManager getOIMTransactionManager()
public static javax.xml.parsers.DocumentBuilderFactory getDocumentBuilderFactory()
public static java.lang.Object getTargetImplementation(java.lang.Object obj, java.lang.Class clazz)