Package net.shibboleth.spring.metadata
Class ResourceBackedMetadataProviderParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
net.shibboleth.spring.metadata.AbstractMetadataProviderParser
net.shibboleth.spring.metadata.AbstractReloadingMetadataProviderParser
net.shibboleth.spring.metadata.ResourceBackedMetadataProviderParser
- All Implemented Interfaces:
BeanDefinitionParser
Parser for a ResourceBackedMetadataProvider.
This is the most complicated of the parsers. We reach into the resource and find out what sort it is and them summon up an appropriate provider.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final QNameElement name.private final org.slf4j.LoggerLog.static final QNameFor direct injection of a Spring bean.static final QNameElement name for the resource elements.Fields inherited from class net.shibboleth.spring.metadata.AbstractMetadataProviderParser
CHAINING_PROVIDER_ELEMENT_NAME, METADATA_FILTER_ELEMENT_NAME, METADATA_NAMESPACE, SECURITY_NAMESPACE, TRUST_ENGINE_ELEMENT_NAMEFields inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
CUSTOM_PARSER_PROPERTIES_LOCATIONFields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoNativeParse(Element element, ParserContext parserContext, BeanDefinitionBuilder builder) Parse the element into the provider builder.protected Class<? extends AbstractBatchMetadataResolver>getNativeBeanClass(Element element) Return the real class implement by this type.Methods inherited from class net.shibboleth.spring.metadata.AbstractReloadingMetadataProviderParser
getParserPoolRef, getTaskTimerRefMethods inherited from class net.shibboleth.spring.metadata.AbstractMetadataProviderParser
doParse, getBeanClassMethods inherited from class net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
getCustomProperty, registerBeanDefinitionMethods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternalMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
ELEMENT_NAME
Element name. -
RESOURCES_NAME
Element name for the resource elements. -
RESOURCE_REF
For direct injection of a Spring bean. -
log
@Nonnull private final org.slf4j.Logger logLog.
-
-
Constructor Details
-
ResourceBackedMetadataProviderParser
public ResourceBackedMetadataProviderParser()
-
-
Method Details
-
getNativeBeanClass
@Nonnull protected Class<? extends AbstractBatchMetadataResolver> getNativeBeanClass(@Nonnull Element element) Return the real class implement by this type. This has the same function as the more usualAbstractSingleBeanDefinitionParser.getBeanClass(Element)but it may need to be shimmed inAbstractMetadataProviderParserwhich may need to insert an extra bean.- Specified by:
getNativeBeanClassin classAbstractMetadataProviderParser- Parameters:
element- theElementthat is being parsed- Returns:
- the
Classof the bean that is being defined via parsing the suppliedElement, ornullif none - See Also:
-
doNativeParse
protected void doNativeParse(@Nonnull Element element, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder) Parse the element into the provider builder. This has the same function as the more usualAbstractSingleBeanDefinitionParser.doParse(Element, ParserContext, BeanDefinitionBuilder)but it may need to be shimmed in this class which may need to insert an extra bean. We assume in setting the that we will be summoning up a class which extendsAbstractReloadingMetadataResolver.- Overrides:
doNativeParsein classAbstractReloadingMetadataProviderParser- Parameters:
element- the XML element being parsedparserContext- the object encapsulating the current state of the parsing processbuilder- used to define theBeanDefinition- See Also:
-