de.mindmatters.faces.spring.factory
Class DefaultConfigurableBeanFactory
java.lang.Object
org.springframework.beans.factory.support.AbstractBeanFactory
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
org.springframework.beans.factory.support.DefaultListableBeanFactory
de.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
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 |
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 strategyparentBeanFactory
- the parent- See Also:
ConfigurableInstantiationStrategy
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)
-
Copyright © 2002 mindmatters GmbH & Co. KG