SourceForge.net Logo

de.mindmatters.faces.spring.context.support
Class SpringManagedBeanFactory

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
                  extended byde.mindmatters.faces.spring.factory.context.AbstractManagedBeanFactory
                      extended byde.mindmatters.faces.spring.context.support.SpringManagedBeanFactory
All Implemented Interfaces:
AutowireCapableBeanFactory, BeanDefinitionRegistry, BeanFactory, ConfigurableBeanFactory, ConfigurableBeanFactory, ConfigurableListableBeanFactory, HierarchicalBeanFactory, ListableBeanFactory, ManagedBeanFactory

public final class SpringManagedBeanFactory
extends AbstractManagedBeanFactory

ManagedBeanFactory implementation used as internal bean factory for the configured FacesWebApplicationContext.

This implementation uses spring features to create and populate the requested managed bean.

This internal bean factory is the default implementation for the configured FacesWebApplicationContext loaded by the ContextLoader. If the internal bean factory should be changed, use the servlet context-param ContextLoader.FACTORY_CLASS_PARAM to define the appropiate ManagedBeanFactory class (e.g. FacesDelegatingManagedBeanFactory).

Author:
Andreas Kuhrwahl
See Also:
ContextLoader, ContextLoaderListener, ContextLoaderServlet

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
SpringManagedBeanFactory(ConfigurableInstantiationStrategy strategy, BeanFactory parentBeanFactory)
          Creates a Factory with the given ConfigurableInstantiationStrategy strategy and the given parent BeanFactory parentBeanFactory.
 
Method Summary
protected  java.lang.Object createManagedBean(java.lang.String beanName, ManagedBeanDefinition beanDefinition)
          Creates a managed bean declared in a faces configuration file.
 
Methods inherited from class de.mindmatters.faces.spring.factory.context.AbstractManagedBeanFactory
createBean, createNonManagedBean, getBeanNamesForType, getBeanNamesForType, getBeansOfType, getMergedBeanDefinition, getScopedBeanStorage, setScopedBeanStorage
 
Methods inherited from class de.mindmatters.faces.spring.factory.DefaultConfigurableBeanFactory
addInstantiationProcessor, doTypeConversionIfNecessary, getConfigurableInstantiationStrategy, setInstantiationStrategy
 
Methods inherited from class org.springframework.beans.factory.support.DefaultListableBeanFactory
containsBeanDefinition, findMatchingBeans, getBeanDefinition, getBeanDefinitionCount, getBeanDefinitionNames, getBeanDefinitionNames, 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, 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, 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 de.mindmatters.faces.spring.factory.ConfigurableBeanFactory
addInstantiationProcessor
 
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, 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

SpringManagedBeanFactory

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

Parameters:
strategy - the InstantiationStrategy to use
parentBeanFactory - the parent factory
Method Detail

createManagedBean

protected java.lang.Object createManagedBean(java.lang.String beanName,
                                             ManagedBeanDefinition beanDefinition)
Creates a managed bean declared in a faces configuration file.

Specified by:
createManagedBean in class AbstractManagedBeanFactory
Parameters:
beanName - the name of the requested bean
beanDefinition - the definition of the requested bean
Returns:
the created bean
Throws:
BeansException - if the bean could not be created
See Also:
#createManagedBean(String, ManagedBeanDefinition)

SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG