CentraSite Documentation : CentraSite Developer’s Guide : Application Framework : Introduction : BeanPool
BeanPool
The BeanPool (com.softwareag.centrasite.appl.framework.persistence.BeanPool) is the main interface with which the application interacts in order to use the persistence framework.
All CRUD (create, read, update, delete) operations search via this interface, and registry queries are done via this interface. The user must be aware that the BeanPool instances are not thread safe. There can be only one beanPool per SessionContext. CSAF provides the functionality to create beanPool instances by using SessionContext.createBeanPool();. The beanPool can be accessed by SessionContext.getCurrentBeanPool();. This method returns the BeanPool instance that is associated with the given context. The CurrentBeanPoolContext interface defines the contract for implementations which knows how to scope the notion of a current bean pool. An implementation of this interface is provided as ThreadLocalCurrentBeanPoolContext, which maintains current bean pools for the given execution thread. This functionality is extensible, so users can create their own context by implementing CurrentBeanPoolContext.
Copyright © Software AG, Darmstadt, Germany.

Product LogoContact Support   |   Community   |   Feedback