Class AbstractCustomBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
net.shibboleth.shared.spring.custom.AbstractCustomBeanDefinitionParser
- All Implemented Interfaces:
BeanDefinitionParser
This is the base parser for all our custom syntax.
It is a trivial extension of
AbstractCustomBeanDefinitionParser, but allows
for a single point of change to our behaviors.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringLocation to look forPropertiesthat may affect custom parsing.private static PropertiesProperty bad for custom parser properties to expose to subclasses.private static final org.slf4j.LoggerLogger.Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCustomProperty(String name, String defaultValue) Get a custom parser property, or return the default value specified.protected voidregisterBeanDefinition(BeanDefinitionHolder definition, BeanDefinitionRegistry registry) The override is to warn if there is an ID clash within the same context.Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, doParse, getBeanClass, getBeanClassName, getParentName, parseInternalMethods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
Field Details
-
CUSTOM_PARSER_PROPERTIES_LOCATION
Location to look forPropertiesthat may affect custom parsing.- See Also:
-
customProperties
Property bad for custom parser properties to expose to subclasses. -
LOG
@Nonnull private static final org.slf4j.Logger LOGLogger.
-
-
Constructor Details
-
AbstractCustomBeanDefinitionParser
public AbstractCustomBeanDefinitionParser()
-
-
Method Details
-
registerBeanDefinition
protected void registerBeanDefinition(@Nonnull BeanDefinitionHolder definition, @Nonnull BeanDefinitionRegistry registry) The override is to warn if there is an ID clash within the same context.- Overrides:
registerBeanDefinitionin classAbstractBeanDefinitionParser
-
getCustomProperty
@Nullable public static String getCustomProperty(@Nonnull String name, @Nullable String defaultValue) Get a custom parser property, or return the default value specified.- Parameters:
name- property namedefaultValue- default value- Returns:
- the property value or the default if not set
- Since:
- 9.0.0
-