Class EmbeddedAndSchemaAwareReader
java.lang.Object
org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
net.shibboleth.shared.spring.custom.SchemaTypeAwareBeanDefinitionDocumentReader
net.shibboleth.shared.spring.custom.EmbeddedAndSchemaAwareReader
- All Implemented Interfaces:
BeanDefinitionDocumentReader
An extension to our
SchemaTypeAwareBeanDefinitionDocumentReader which, 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 -
Method Summary
Modifier and TypeMethodDescriptionvoidregisterBeanDefinitions(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.shared.spring.custom.SchemaTypeAwareBeanDefinitionDocumentReader
createDelegate, importBeanDefinitionResourceMethods inherited from class org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader
doRegisterBeanDefinitions, extractSource, getReaderContext, parseBeanDefinitions, postProcessXml, preProcessXml, processAliasRegistration, processBeanDefinition
-
Constructor Details
-
EmbeddedAndSchemaAwareReader
public EmbeddedAndSchemaAwareReader()
-
-
Method Details
-
registerBeanDefinitions
public void registerBeanDefinitions(@Nonnull Document doc, @Nonnull 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
-