com.softwareag.centrasite.appl.framework
Interface CurrentBeanPoolContext

All Known Implementing Classes:
ThreadLocalCurrentBeanPoolContext

public interface CurrentBeanPoolContext

Defines the contract for implementations which know how to scope the notion of a current bean pool.

Implementations should adhere to the following:

Implementors should be aware that they are also fully responsible for cleanup of any generated current bean pools.

Note that there will be exactly one instance of the configured CurrentBeanPoolContext implementation per SessionContext.


Method Summary
 void cleanupCurrentBeanPool()
          Release references to the "current" bean pool and any other resources.
 BeanPool getCurrentBeanPool()
          Retrieve the current bean pool according to the scoping defined by this implementation.
 void setCurrentBeanPool(BeanPool currentBeanPool)
          Set currentBeanPool.
 void setSessionContext(SessionContext sessionContext)
          Sets the SessionContext using this instance.
 

Method Detail

getCurrentBeanPool

BeanPool getCurrentBeanPool()
Retrieve the current bean pool according to the scoping defined by this implementation.

Returns:
bean pool

cleanupCurrentBeanPool

void cleanupCurrentBeanPool()
Release references to the "current" bean pool and any other resources.


setSessionContext

void setSessionContext(SessionContext sessionContext)
Sets the SessionContext using this instance.

Parameters:
sessionContext -

setCurrentBeanPool

void setCurrentBeanPool(BeanPool currentBeanPool)
Set currentBeanPool. The method removes any previous bindings of the SessionContext.

Parameters:
currentBeanPool - the new current bean pool