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

All Known Implementing Classes:
BackedBeanFactory, BaseBeanFactory, SimpleBeanFactory

public interface BeanFactory

This interface represents a factory for instantiating beans. Provides methods for creating clean RegistryBean instances as well as proxied ones.

Instances of this interface are used inside BeanPool instances.

See Also:
BeanPool

Method Summary
 void addBeanFactoryListener(BeanFactoryListener listener)
          Adds a listener to the Bean Factory
 RegistryBean createBean(java.lang.Class<RegistryBean> beanClass, PersistenceContext persistenceContext)
          Creates "naked" RegistryBean instance for the given type.
 BeanInfo createBeanInfo(RegistryBean bean, PersistenceContext persistenceContext)
          Creates proxied RegistryBean instance implementing the BeanInfo interface.
 

Method Detail

createBean

RegistryBean createBean(java.lang.Class<RegistryBean> beanClass,
                        PersistenceContext persistenceContext)
                        throws JBMException
Creates "naked" RegistryBean instance for the given type.

Parameters:
beanClass -
persistenceContext -
Returns:
RegistryBean
Throws:
JBMException

createBeanInfo

BeanInfo createBeanInfo(RegistryBean bean,
                        PersistenceContext persistenceContext)
                        throws JBMException
Creates proxied RegistryBean instance implementing the BeanInfo interface.

Parameters:
bean - The already created non-proxied RegistryBean
persistenceContext - The PersistenceContext containing the ManagedBeanPool managing the bean instance.
Returns:
Bean proxy implementing the BeanInfo interface or some of its subinterfaces.
Throws:
JBMException

addBeanFactoryListener

void addBeanFactoryListener(BeanFactoryListener listener)
Adds a listener to the Bean Factory

Parameters:
listener -