public interface ManagedBeanPool extends BeanPool
BeanPool
interface with methods providing
access to the bean life cycle management capabilities of the pool. This
interface is exposed to the internal users of the bean poolModifier and Type | Method and Description |
---|---|
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 bean managed by the pool bean is modified.
|
<T extends RegistryBean> |
read(java.lang.Class<T> beanClass,
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. |
addPersistenceListener, attach, clear, clearJaxrCache, create, createSearch, createSearch, createSearch, delete, delete, detach, flush, getFlushMode, getPersistenceListeners, insert, removePersistenceListener, run, setFlushMode, update, update
boolean isManaged(RegistryBean bean)
bean
- The RegistryBean
instance to checktrue
if bean is managed by the pool and false
otherwiseboolean isModified(RegistryBean bean)
bean
- The RegistryBean
to check for modificationtrue
if the bean is modified and false
otherwiseBeanInfo getBeanInfo(RegistryBean bean)
BeanInfo
for a bean.bean
- The RegistryBean
instance whose bean info is requiredBeanInfo
for the given beanBeanFactory getBeanFactory()
BeanFactory
instanceConfigurationManager getConfigurationManager()
ConfigurationManager
.ConfigurationManager
instancePersistenceContext getPersistenceContext()
PersistenceContext
.PersistenceContext
instancejava.util.Set<RelationInfo> getSourceRelations(RegistryBean bean)
bean
- The source RegistryBean
objectSet
of registered RelationInfo
objectsjava.util.Set<RelationInfo> getTargetRelations(RegistryBean bean)
bean
- The target RegistryBean
objectSet
of registered RelationInfo
objectsvoid addRelation(RelationInfo relation)
relation
- The RelationInfo
to registervoid removeRelation(RelationInfo relation)
RelationInfo
from the pool.relation
- The RelationInfo
to removeBeanType getBeanType(RegistryBean bean)
BeanType
meta-information for the given bean.bean
- The RegistryBean
objectBeanType
meta information for beanRegistryObjectModel getRegistryObjectModel()
RegistryObjectModel
instance for this bean pool..RegistryObjectModel
object<T extends RegistryBean> T read(java.lang.Class<T> beanClass, RegistryObject ro) throws JBMException
BeanPool.attach(RegistryBean)
.read
in interface BeanPool
T
- type extending the RegistryBean
interface.beanClass
- The bean Class
specifying the typero
- The RegistryObject
to be readRegistryBean
object read from the bean poolJBMException
- If an error occurs while doing the read operation