public class SessionContext
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
BeanPool |
createBeanPool()
Creates a new instance of
BeanPool . |
BeanPool |
createBeanPool(boolean createNewCurrentBeanPool)
Creates a new instance of
BeanPool or returns the already
existing beanPool. |
static SessionContext |
createInstance(Configuration configuration)
Creates a
SessionContext instance using the given configuration. |
static SessionContext |
createInstance(Configuration configuration,
IOCProvider provider)
Creates a
SessionContext instance using the given configuration
and IOCProvider . |
static SessionContext |
createInstance(IOCProvider pContext,
RegistryProvider pProvider)
|
static SessionContext |
createInstance(RegistryProvider pProvider)
Creates a
SessionContext instance using the given
RegistryProvider . |
<M extends Manager<?>> |
findManager(java.lang.Class<M> pClass)
Retrieves and initializes a manager of the given type.
|
BeanPool |
getBeanPool()
Deprecated.
|
Configuration |
getConfiguration()
Returns the configuration.
|
BeanPool |
getCurrentBeanPool()
Obtains the current bean pool.
|
LCMAdminManager |
getLCMAdminManager()
Returns an instance of LCMAdminManager.
|
RegistryBeanGenerator |
getRegistryBeanGenerator()
Retrieves the
RegistryBeanGenerator instance for the current session. |
RevisionManager |
getRevisionManager()
Retrieves the
RevisionManager instance for the current session. |
TypeManager |
getTypeManager()
Retrieves the
TypeManager instance for the current session. |
VersionManager |
getVersionManager()
Returns the version manager.
|
void |
releaseCurrentBeanPool()
Releases the current bean pool.
|
public static SessionContext createInstance(RegistryProvider pProvider)
SessionContext
instance using the given
RegistryProvider
.pProvider
- the Registry provider for creating instance.SessionContext
instance.public static SessionContext createInstance(Configuration configuration)
SessionContext
instance using the given configuration.configuration
- the configuration information to create instance.SessionContext
instance.public static SessionContext createInstance(Configuration configuration, IOCProvider provider)
SessionContext
instance using the given configuration
and IOCProvider
.configuration
- the configuration information to create instance.provider
- The value for the provider.SessionContext
instance.public static SessionContext createInstance(IOCProvider pContext, RegistryProvider pProvider)
pContext
- pProvider
- the registry provider.SessionContext
instance.public Configuration getConfiguration() throws CSAppFrameworkException
CSAppFrameworkException
- if an internal error occurs.public BeanPool getBeanPool()
getCurrentBeanPool()
BeanPool
instance for this session. Returns the
first created BeanPool.BeanPool
instance.public BeanPool createBeanPool()
BeanPool
.public BeanPool createBeanPool(boolean createNewCurrentBeanPool)
BeanPool
or returns the already
existing beanPool. If createNewBeanPool is set to true a new instance
will be created whether or not a beanPool instance is already present.createNewCurrentBeanPool
- - whether or not to change the current bean poolpublic BeanPool getCurrentBeanPool()
CurrentBeanPoolContext
impl configured
for use.public void releaseCurrentBeanPool()
CurrentBeanPoolContext.cleanupCurrentBeanPool()
method of the
configured CurrentBeanPoolContext
instance.public TypeManager getTypeManager()
TypeManager
instance for the current session.TypeManager
instance.public RevisionManager getRevisionManager()
RevisionManager
instance for the current session.RevisionManager
instance.public RegistryBeanGenerator getRegistryBeanGenerator()
RegistryBeanGenerator
instance for the current session.RegistryBeanGenerator
instance.public <M extends Manager<?>> M findManager(java.lang.Class<M> pClass) throws java.lang.Exception
M
- Type class extending Manager
pClass
- the parent class.java.lang.Exception
- if an internal error occurs.public LCMAdminManager getLCMAdminManager()
LCMAdminManager
instance.public VersionManager getVersionManager()
VersionManager
instance.