|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.softwareag.centrasite.appl.framework.SessionContext
public class SessionContext
This class serves as a container for the session data of an application. Use
this class to configure and later retrieve BeanPool
and
Manager
instances.
Method Summary | ||
---|---|---|
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)
Creates a SessionContext instance using the given
RegistryProvider and the given context . |
|
static SessionContext |
createInstance(RegistryProvider pProvider)
Creates a SessionContext instance using the given
RegistryProvider . |
|
|
findManager(java.lang.Class<M> pClass)
Retrieves and initializes a manager of the given type. |
|
BeanPool |
getBeanPool()
Deprecated. use getCurrentBeanPool() |
|
Configuration |
getConfiguration()
Return 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()
|
|
void |
releaseCurrentBeanPool()
Releases the current bean pool. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static SessionContext createInstance(RegistryProvider pProvider)
SessionContext
instance using the given
RegistryProvider
.
public static SessionContext createInstance(Configuration configuration)
SessionContext
instance using the given configuration.
public static SessionContext createInstance(Configuration configuration, IOCProvider provider)
SessionContext
instance using the given configuration
and IOCProvider
.
public static SessionContext createInstance(IOCProvider pContext, RegistryProvider pProvider)
SessionContext
instance using the given
RegistryProvider
and the given context
.
public Configuration getConfiguration() throws CSAppFrameworkException
CSAppFrameworkException
public BeanPool getBeanPool()
getCurrentBeanPool()
BeanPool
instance for this session. Returns the
first created BeanPool.
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 pool
public 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.
public RevisionManager getRevisionManager()
RevisionManager
instance for the current session.
public RegistryBeanGenerator getRegistryBeanGenerator()
RegistryBeanGenerator
instance for the current session.
public <M extends Manager<?>> M findManager(java.lang.Class<M> pClass) throws java.lang.Exception
java.lang.Exception
public LCMAdminManager getLCMAdminManager()
public VersionManager getVersionManager()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |