SourceForge.net Logo

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

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.FacesDelegatingManagedBeanFactory
All Implemented Interfaces:
AutowireCapableBeanFactory, BeanDefinitionRegistry, BeanFactory, ConfigurableBeanFactory, ConfigurableBeanFactory, ConfigurableListableBeanFactory, HierarchicalBeanFactory, ListableBeanFactory, ManagedBeanFactory

public final class FacesDelegatingManagedBeanFactory
extends AbstractManagedBeanFactory

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

This implementation uses the original or customized VariableResolver of the underlying JSF implementation to create and populate the requested managed bean.

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

Field Summary
protected  VariableResolver variableResolver
          The original or customized VariableResolver of the underlying JSF implementation.
 
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
FacesDelegatingManagedBeanFactory(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
 

Field Detail

variableResolver

protected final VariableResolver variableResolver
The original or customized VariableResolver of the underlying JSF implementation.

Constructor Detail

FacesDelegatingManagedBeanFactory

public FacesDelegatingManagedBeanFactory(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