SourceForge.net Logo

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

java.lang.Object
  extended byorg.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser
      extended byde.mindmatters.faces.spring.context.support.ScopedBeanDefinitionParser
All Implemented Interfaces:
XmlBeanDefinitionParser

public class ScopedBeanDefinitionParser
extends DefaultXmlBeanDefinitionParser

Parses configuration from spring configuration and jsf-spring configuration XML documents.
More precisely parseable config files must be compatible with the following DTD's:

Wraps every created BeanDefinition into a ScopedBeanDefinition because bean definitions configured in jsf-spring configuration XML documents supports scope defintion. Checks wheter there are conflicts between scope and singleton definitions of a bean or not. If the bean is defined as singleton, it's scope must be "application" or not set. If the bean is defined in scope "none", "request" or "session", the singleton attribute must be set to false or should not be specified at all.

Author:
Andreas Kuhrwahl
See Also:
ScopedBeanDefinition, RootBeanDefinition

Field Summary
static java.lang.String SCOPE_ATTRIBUTE
          scope attribute of the <bean></bean> element.
 
Fields inherited from class org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser
ABSTRACT_ATTRIBUTE, ALIAS_ATTRIBUTE, ALIAS_ELEMENT, ARG_TYPE_ELEMENT, ARG_TYPE_MATCH_ATTRIBUTE, AUTOWIRE_ATTRIBUTE, AUTOWIRE_AUTODETECT_VALUE, AUTOWIRE_BY_NAME_VALUE, AUTOWIRE_BY_TYPE_VALUE, AUTOWIRE_CONSTRUCTOR_VALUE, BEAN_ELEMENT, BEAN_NAME_DELIMITERS, BEAN_REF_ATTRIBUTE, CLASS_ATTRIBUTE, CONSTRUCTOR_ARG_ELEMENT, DEFAULT_AUTOWIRE_ATTRIBUTE, DEFAULT_DEPENDENCY_CHECK_ATTRIBUTE, DEFAULT_LAZY_INIT_ATTRIBUTE, DEFAULT_VALUE, DEPENDENCY_CHECK_ALL_ATTRIBUTE_VALUE, DEPENDENCY_CHECK_ATTRIBUTE, DEPENDENCY_CHECK_OBJECTS_ATTRIBUTE_VALUE, DEPENDENCY_CHECK_SIMPLE_ATTRIBUTE_VALUE, DEPENDS_ON_ATTRIBUTE, DESCRIPTION_ELEMENT, DESTROY_METHOD_ATTRIBUTE, ENTRY_ELEMENT, FACTORY_BEAN_ATTRIBUTE, FACTORY_METHOD_ATTRIBUTE, ID_ATTRIBUTE, IDREF_ELEMENT, IMPORT_ELEMENT, INDEX_ATTRIBUTE, INIT_METHOD_ATTRIBUTE, KEY_ATTRIBUTE, KEY_ELEMENT, KEY_REF_ATTRIBUTE, LAZY_INIT_ATTRIBUTE, LIST_ELEMENT, LOCAL_REF_ATTRIBUTE, logger, LOOKUP_METHOD_ELEMENT, MAP_ELEMENT, NAME_ATTRIBUTE, NULL_ELEMENT, PARENT_ATTRIBUTE, PARENT_REF_ATTRIBUTE, PROP_ELEMENT, PROPERTY_ELEMENT, PROPS_ELEMENT, REF_ATTRIBUTE, REF_ELEMENT, REPLACED_METHOD_ELEMENT, REPLACER_ATTRIBUTE, RESOURCE_ATTRIBUTE, SET_ELEMENT, SINGLETON_ATTRIBUTE, TRUE_VALUE, TYPE_ATTRIBUTE, VALUE_ATTRIBUTE, VALUE_ELEMENT, VALUE_REF_ATTRIBUTE
 
Constructor Summary
ScopedBeanDefinitionParser()
           
 
Method Summary
protected  BeanDefinition parseBeanDefinitionElement(org.w3c.dom.Element ele, java.lang.String beanName)
          
 
Methods inherited from class org.springframework.beans.factory.xml.DefaultXmlBeanDefinitionParser
getAutowireMode, getBeanDefinitionReader, getDefaultAutowire, getDefaultDependencyCheck, getDefaultLazyInit, getDependencyCheck, getResource, importBeanDefinitionResource, initDefaults, parseBeanDefinitionElement, parseBeanDefinitions, parseConstructorArgElement, parseConstructorArgElements, parseKeyElement, parseListElement, parseLookupOverrideSubElements, parseMapElement, parsePropertyElement, parsePropertyElements, parsePropertySubElement, parsePropertyValue, parsePropsElement, parseReplacedMethodSubElements, parseSetElement, postProcessXml, preProcessXml, registerBeanDefinitions, setDefaultAutowire, setDefaultDependencyCheck, setDefaultLazyInit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SCOPE_ATTRIBUTE

public static final java.lang.String SCOPE_ATTRIBUTE
scope attribute of the <bean></bean> element.

See Also:
Constant Field Values
Constructor Detail

ScopedBeanDefinitionParser

public ScopedBeanDefinitionParser()
Method Detail

parseBeanDefinitionElement

protected final BeanDefinition parseBeanDefinitionElement(org.w3c.dom.Element ele,
                                                          java.lang.String beanName)


SourceForge.net Logo

Copyright © 2002 mindmatters GmbH & Co. KG