public abstract class TenantContextFactory
extends java.lang.Object
Constructor and Description |
---|
TenantContextFactory() |
Modifier and Type | Method and Description |
---|---|
static TenantContextFactory |
getInstance()
Gets the most appropriate tenant context factory for the environment.
|
abstract TenantContext |
getTenantContext()
Gets platform TenantContext.
|
public static final TenantContextFactory getInstance()
TenantContextFactory is non-null regardless of whether multi tenancy is enabled.
On JRF environments JRFTenantContextFactory
,
a wrapper of TenantContextFactory
is returned.
On non-JRF environments, ADFTenantContextFactory
,
is returned.
Note: JRF *must* be available on WebLogic platform or IllegalStateException is thrown.
java.lang.IllegalStateException
- (a RuntimeException) if this method is unable
to load the JRF factory in WebLogic server.public abstract TenantContext getTenantContext()
TenantContext is always non-null regardless of what's in the environment.
java.lang.IllegalStateException
- (a RuntimeException) if the JRF TenantContext
isn't available in WebLogic.