Module net.shibboleth.ext.spring
Package net.shibboleth.ext.spring.util
Class EmbeddedAndSchemaAwareReader
- java.lang.Object
-
- org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
-
- net.shibboleth.ext.spring.util.SchemaTypeAwareBeanDefinitionDocumentReader
-
- net.shibboleth.ext.spring.util.EmbeddedAndSchemaAwareReader
-
- All Implemented Interfaces:
BeanDefinitionDocumentReader
public class EmbeddedAndSchemaAwareReader extends SchemaTypeAwareBeanDefinitionDocumentReader
An extension to ourSchemaTypeAwareBeanDefinitionDocumentReaderwhich, in addition allows parsing of embedded <beans> statements (by the native spring parsers).
-
-
Field Summary
-
Fields inherited from class org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
ALIAS_ATTRIBUTE, ALIAS_ELEMENT, BEAN_ELEMENT, IMPORT_ELEMENT, logger, NAME_ATTRIBUTE, NESTED_BEANS_ELEMENT, PROFILE_ATTRIBUTE, RESOURCE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description EmbeddedAndSchemaAwareReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterBeanDefinitions(Document doc, XmlReaderContext readerContext)We call the parent method for the custom schema (which is expected to not do anything special with the <beans> statement) and then we call again to handle the beans statements which we have explicitly pulled out.-
Methods inherited from class net.shibboleth.ext.spring.util.SchemaTypeAwareBeanDefinitionDocumentReader
createDelegate
-
Methods inherited from class org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
doRegisterBeanDefinitions, extractSource, getReaderContext, importBeanDefinitionResource, parseBeanDefinitions, postProcessXml, preProcessXml, processAliasRegistration, processBeanDefinition
-
-
-
-
Method Detail
-
registerBeanDefinitions
public void registerBeanDefinitions(Document doc, XmlReaderContext readerContext) throws BeanDefinitionStoreException
We call the parent method for the custom schema (which is expected to not do anything special with the <beans> statement) and then we call again to handle the beans statements which we have explicitly pulled out.- Specified by:
registerBeanDefinitionsin interfaceBeanDefinitionDocumentReader- Overrides:
registerBeanDefinitionsin classDefaultBeanDefinitionDocumentReader- Throws:
BeanDefinitionStoreException
-
-