SourceForge.net Logo

de.mindmatters.faces.spring.factory
Class DefaultConfigurableBeanFactory

java.lang.Object
  extended byorg.springframework.beans.factory.support.AbstractBeanFactory
      extended byorg.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
          extended byorg.springframework.beans.factory.support.DefaultListableBeanFactory
              extended byde.mindmatters.faces.spring.factory.DefaultConfigurableBeanFactory
All Implemented Interfaces:
AutowireCapableBeanFactory, BeanDefinitionRegistry, BeanFactory, ConfigurableBeanFactory, ConfigurableBeanFactory, ConfigurableListableBeanFactory, HierarchicalBeanFactory, ListableBeanFactory
Direct Known Subclasses:
AbstractManagedBeanFactory

public class DefaultConfigurableBeanFactory
extends DefaultListableBeanFactory
implements ConfigurableBeanFactory

Default implementation of the ConfigurableBeanFactory interfaces: a full-fledged bean factory based on bean definitions.

Uses ConfigurableInstantiationStrategy as default instantiation strategy. This class only accepts instantiation stratgies of type ConfigurableInstantiationStrategy.

Based on DefaultListableBeanFactory

Author:
Andreas Kuhrwahl

Field Summary
 
Fields inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
logger
 
Fields inherited from interface org.springframework.beans.factory.BeanFactory
FACTORY_BEAN_PREFIX
 
Fields inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
AUTOWIRE_AUTODETECT, AUTOWIRE_BY_NAME, AUTOWIRE_BY_TYPE, AUTOWIRE_CONSTRUCTOR
 
Constructor Summary
DefaultConfigurableBeanFactory()
          Creates a new DefaultConfigurableBeanFactory.
DefaultConfigurableBeanFactory(BeanFactory parentBeanFactory)
          Creates a new DefaultConfigurableBeanFactory with the given parent.
DefaultConfigurableBeanFactory(ConfigurableInstantiationStrategy strategy)
          Creates a new DefaultConfigurableBeanFactory with the given ConfigurableInstantiationStrategy strategy.
DefaultConfigurableBeanFactory(ConfigurableInstantiationStrategy strategy, BeanFactory parentBeanFactory)
          Creates a new DefaultConfigurableBeanFactory with the given ConfigurableInstantiationStrategy strategy and the given parent.
 
Method Summary
 void addInstantiationProcessor(InstantiationProcessor instantiationProcessor)
          Adds a new InstantiationProcessor that will get applied to beans created by this factory. To be invoked during factory configuration.
protected  java.lang.Object doTypeConversionIfNecessary(java.lang.Object value, java.lang.Class targetType)
          
protected  ConfigurableInstantiationStrategy getConfigurableInstantiationStrategy()
           
 void setInstantiationStrategy(InstantiationStrategy strategy)
          
 
Methods inherited from class org.springframework.beans.factory.support.DefaultListableBeanFactory
containsBeanDefinition, findMatchingBeans, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType, preInstantiateSingletons, registerBeanDefinition, setAllowBeanDefinitionOverriding, toString
 
Methods inherited from class org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPostProcessorsBeforeInstantiation, applyBeanPropertyValues, autowire, autowireBeanProperties, autowireByName, autowireByType, autowireConstructor, checkDependencies, createBean, getIgnoredDependencyInterfaces, getIgnoredDependencyTypes, getInstantiationStrategy, getTypeForFactoryMethod, ignoreDependencyInterface, ignoreDependencyType, instantiateBean, instantiateUsingFactoryMethod, invokeCustomInitMethod, invokeInitMethods, isExcludedFromDependencyCheck, populateBean, unsatisfiedNonSimpleProperties
 
Methods inherited from class org.springframework.beans.factory.support.AbstractBeanFactory
addBeanPostProcessor, addSingleton, checkMergedBeanDefinition, containsBean, containsSingleton, destroyBean, destroySingletons, doTypeConversionIfNecessary, getAliases, getBean, getBean, getBean, getBean, getBeanPostProcessorCount, getBeanPostProcessors, getCustomEditors, getMergedBeanDefinition, getMergedBeanDefinition, getMergedBeanDefinition, getObjectForSharedInstance, getParentBeanFactory, getSingletonCount, getSingletonNames, getType, hasDestructionAwareBeanPostProcessors, initBeanWrapper, invokeCustomDestroyMethod, isFactoryBean, isFactoryDereference, isSingleton, isSingletonCurrentlyInCreation, registerAlias, registerCustomEditor, registerDependentBean, registerDisposableBean, registerDisposableBeanIfNecessary, registerSingleton, removeSingleton, setParentBeanFactory, transformedBeanName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableListableBeanFactory
getBeanDefinition, ignoreDependencyInterface, ignoreDependencyType, preInstantiateSingletons
 
Methods inherited from interface org.springframework.beans.factory.ListableBeanFactory
containsBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getBeansOfType
 
Methods inherited from interface org.springframework.beans.factory.BeanFactory
containsBean, getAliases, getBean, getBean, getType, isSingleton
 
Methods inherited from interface org.springframework.beans.factory.config.AutowireCapableBeanFactory
applyBeanPostProcessorsAfterInitialization, applyBeanPostProcessorsBeforeInitialization, applyBeanPropertyValues, autowire, autowireBeanProperties
 
Methods inherited from interface org.springframework.beans.factory.config.ConfigurableBeanFactory
addBeanPostProcessor, containsSingleton, destroySingletons, getBeanPostProcessorCount, registerAlias, registerCustomEditor, registerSingleton, setParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.HierarchicalBeanFactory
getParentBeanFactory
 
Methods inherited from interface org.springframework.beans.factory.support.BeanDefinitionRegistry
getAliases, registerAlias
 

Constructor Detail

DefaultConfigurableBeanFactory

public DefaultConfigurableBeanFactory()
Creates a new DefaultConfigurableBeanFactory.


DefaultConfigurableBeanFactory

public DefaultConfigurableBeanFactory(BeanFactory parentBeanFactory)
Creates a new DefaultConfigurableBeanFactory with the given parent.

Parameters:
parentBeanFactory - the parent

DefaultConfigurableBeanFactory

public DefaultConfigurableBeanFactory(ConfigurableInstantiationStrategy strategy)
Creates a new DefaultConfigurableBeanFactory with the given ConfigurableInstantiationStrategy strategy.

Parameters:
strategy - the instantiation strategy
See Also:
ConfigurableInstantiationStrategy

DefaultConfigurableBeanFactory

public DefaultConfigurableBeanFactory(ConfigurableInstantiationStrategy strategy,
                                      BeanFactory parentBeanFactory)
Creates a new DefaultConfigurableBeanFactory with the given ConfigurableInstantiationStrategy strategy and the given parent.

Parameters:
strategy - the instantiation strategy
parentBeanFactory - the parent
See Also:
ConfigurableInstantiationStrategy
Method Detail

addInstantiationProcessor

public final void addInstantiationProcessor(InstantiationProcessor instantiationProcessor)
Adds a new InstantiationProcessor that will get applied to beans created by this factory. To be invoked during factory configuration.

Specified by:
addInstantiationProcessor in interface ConfigurableBeanFactory
Parameters:
instantiationProcessor - the instantiation processor to register

setInstantiationStrategy

public final void setInstantiationStrategy(InstantiationStrategy strategy)


getConfigurableInstantiationStrategy

protected final ConfigurableInstantiationStrategy getConfigurableInstantiationStrategy()
Returns:
the instantiation strategy

doTypeConversionIfNecessary

protected final java.lang.Object doTypeConversionIfNecessary(java.lang.Object value,
                                                             java.lang.Class targetType)


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG