Save This Page
Home » spring-framework-2.5.5-with-dependencies » org.springframework » beans » factory » support » [javadoc | source]
org.springframework.beans.factory.support
abstract public class: FactoryBeanRegistrySupport [javadoc | source]
java.lang.Object
   org.springframework.core.SimpleAliasRegistry
      org.springframework.beans.factory.support.DefaultSingletonBeanRegistry
         org.springframework.beans.factory.support.FactoryBeanRegistrySupport

All Implemented Interfaces:
    SingletonBeanRegistry, AliasRegistry

Direct Known Subclasses:
    DefaultListableBeanFactory, AbstractAutowireCapableBeanFactory, AbstractBeanFactory, XmlBeanFactory

Support base class for singleton registries which need to handle org.springframework.beans.factory.FactoryBean instances, integrated with DefaultSingletonBeanRegistry 's singleton management.

Serves as base class for AbstractBeanFactory .

Fields inherited from org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:
NULL_OBJECT,  logger
Method from org.springframework.beans.factory.support.FactoryBeanRegistrySupport Summary:
getCachedObjectForFactoryBean,   getFactoryBean,   getObjectFromFactoryBean,   getTypeForFactoryBean,   postProcessObjectFromFactoryBean,   removeSingleton
Methods from org.springframework.beans.factory.support.DefaultSingletonBeanRegistry:
addSingleton,   addSingletonFactory,   afterSingletonCreation,   beforeSingletonCreation,   containsSingleton,   destroyBean,   destroySingleton,   destroySingletons,   getDependenciesForBean,   getDependentBeans,   getSingleton,   getSingleton,   getSingleton,   getSingletonCount,   getSingletonMutex,   getSingletonNames,   hasDependentBean,   isSingletonCurrentlyInCreation,   onSuppressedException,   registerDependentBean,   registerDisposableBean,   registerSingleton,   removeSingleton
Methods from org.springframework.core.SimpleAliasRegistry:
allowAliasOverriding,   canonicalName,   getAliases,   isAlias,   registerAlias,   removeAlias,   resolveAliases
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.springframework.beans.factory.support.FactoryBeanRegistrySupport Detail:
 protected Object getCachedObjectForFactoryBean(String beanName) 
    Obtain an object to expose from the given FactoryBean, if available in cached form. Quick check for minimal synchronization.
 protected FactoryBean getFactoryBean(String beanName,
    Object beanInstance) throws BeansException 
    Get a FactoryBean for the given bean if possible.
 protected Object getObjectFromFactoryBean(FactoryBean factory,
    String beanName,
    boolean shouldPostProcess) 
    Obtain an object to expose from the given FactoryBean.
 protected Class getTypeForFactoryBean(FactoryBean factoryBean) 
    Determine the type for the given FactoryBean.
 protected Object postProcessObjectFromFactoryBean(Object object,
    String beanName) throws BeansException 
    Post-process the given object that has been obtained from the FactoryBean. The resulting object will get exposed for bean references.

    The default implementation simply returns the given object as-is. Subclasses may override this, for example, to apply post-processors.

 protected  void removeSingleton(String beanName) 
    Overridden to clear the FactoryBean object cache as well.