com.softwareag.centrasite.appl.framework.persistence
Interface ManagedBeanPool

All Superinterfaces:
BeanPool
All Known Implementing Classes:
BeanPoolImpl

public interface ManagedBeanPool
extends BeanPool

This is an extension of the BeanPool interface with method providing access to the bean life cycle management capabilities of the pool. This interface is exposed to the internal users of the bean pool


Method Summary
 void addRelation(RelationInfo relation)
          Registers relation to the given bean.
 BeanFactory getBeanFactory()
          Retrieves the bean factory.
 BeanInfo getBeanInfo(RegistryBean bean)
          Retrieves the BeanInfo for a bean.
 BeanType getBeanType(RegistryBean bean)
          Retrieves the BeanType meta-information for the given bean.
 ConfigurationManager getConfigurationManager()
          Retrieves the ConfigurationManager
 PersistenceContext getPersistenceContext()
          Retrieves the PersistenceContext
 RegistryObjectModel getRegistryObjectModel()
          Retrieves the RegistryObjectModel instance for this bean pool..
 java.util.Set<RelationInfo> getSourceRelations(RegistryBean bean)
          Retrieves all registered relations inside the pool where the given bean is the source.
 java.util.Set<RelationInfo> getTargetRelations(RegistryBean bean)
          Retrieves all registered relations inside the pool where the given bean is the target.
 boolean isManaged(RegistryBean bean)
          Check if a given bean is being managed by the pool.
 boolean isModified(RegistryBean bean)
          Check if a given managed by the pool bean is modified.
<T extends RegistryBean>
T
read(java.lang.Class<T> beanClass, javax.xml.registry.infomodel.RegistryObject ro)
          Read a registry bean of the specified type and for the specified RegistryObject.
 void removeRelation(RelationInfo relation)
          Removes the given RelationInfo from the pool.
 
Methods inherited from interface com.softwareag.centrasite.appl.framework.persistence.BeanPool
addPersistenceListener, attach, clear, clearJaxrCache, create, createSearch, createSearch, createSearch, delete, delete, detach, flush, getFlushMode, getPersistenceListeners, insert, read, removePersistenceListener, run, setFlushMode, update, update
 

Method Detail

isManaged

boolean isManaged(RegistryBean bean)
Check if a given bean is being managed by the pool.

Parameters:
bean -
Returns:
boolean

isModified

boolean isModified(RegistryBean bean)
Check if a given managed by the pool bean is modified.

Parameters:
bean -
Returns:
boolean

getBeanInfo

BeanInfo getBeanInfo(RegistryBean bean)
Retrieves the BeanInfo for a bean.

Parameters:
bean -
Returns:
BeanInfo

getBeanFactory

BeanFactory getBeanFactory()
Retrieves the bean factory.

Returns:
BeanFactory

getConfigurationManager

ConfigurationManager getConfigurationManager()
Retrieves the ConfigurationManager

Returns:
ConfigurationManager

getPersistenceContext

PersistenceContext getPersistenceContext()
Retrieves the PersistenceContext

Returns:
PersistenceContext

getSourceRelations

java.util.Set<RelationInfo> getSourceRelations(RegistryBean bean)
Retrieves all registered relations inside the pool where the given bean is the source.

Parameters:
bean -
Returns:
Set

getTargetRelations

java.util.Set<RelationInfo> getTargetRelations(RegistryBean bean)
Retrieves all registered relations inside the pool where the given bean is the target.

Parameters:
bean -
Returns:
Set

addRelation

void addRelation(RelationInfo relation)
Registers relation to the given bean.

Parameters:
relation -

removeRelation

void removeRelation(RelationInfo relation)
Removes the given RelationInfo from the pool.

Parameters:
relation -

getBeanType

BeanType getBeanType(RegistryBean bean)
Retrieves the BeanType meta-information for the given bean.

Parameters:
bean -
Returns:
BeanType

getRegistryObjectModel

RegistryObjectModel getRegistryObjectModel()
Retrieves the RegistryObjectModel instance for this bean pool..

Returns:
RegistryObjectModel

read

<T extends RegistryBean> T read(java.lang.Class<T> beanClass,
                                javax.xml.registry.infomodel.RegistryObject ro)
                            throws JBMException
Read a registry bean of the specified type and for the specified RegistryObject. Does not add the result to the bean pool. This can be done by calling BeanPool.attach(RegistryBean).

Type Parameters:
T - type extending the RegistryBean interface.
Parameters:
beanClass -
ro -
Throws:
JBMException