Class PairwiseIdDataConnectorParser
- java.lang.Object
-
- org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
-
- org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
-
- net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
-
- net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
-
- net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
-
- net.shibboleth.idp.attribute.resolver.spring.dc.impl.PairwiseIdDataConnectorParser
-
- All Implemented Interfaces:
BeanDefinitionParser
- Direct Known Subclasses:
ComputedIdDataConnectorParser
public class PairwiseIdDataConnectorParser extends AbstractDataConnectorParser
Spring bean definition parser for configuringPairwiseIdDataConnectorvariants.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogClass logger.static QNameTYPE_NAME_RESOLVERSchema type - resolver.-
Fields inherited from class net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
ATTR_EXPORT_ALL, ATTR_EXPORT_NAMES, ATTR_FACTORY_POSTPROCESSORS_REF, ATTR_FAIL_FAST, ATTR_NORETRYDELAY, ATTR_POSTPROCESSORS_REF, ATTR_SPRING_RESOURCE, ATTR_SPRING_RESOURCE_REF, ELEMENT_NAME, FAILOVER_DATA_CONNECTOR_ELEMENT_NAME
-
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE, NAME_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description PairwiseIdDataConnectorParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voiddoParse(Element config, ParserContext parserContext, BeanDefinitionBuilder builder, String generatedIdDefaultName)Parse any common material forPairwiseIdDataConnector.protected voiddoV2Parse(Element config, ParserContext parserContext, BeanDefinitionBuilder builder)Parse the suppliedElementas a legacy format and populate the suppliedBeanDefinitionBuilderas required.protected StringgetLogPrefix()Return a string which is to be prepended to all log messages.protected Class<PairwiseIdDataConnector>getNativeBeanClass()Per parser indication of what we are building.-
Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.dc.AbstractDataConnectorParser
doParse, getBeanClass, isNative
-
Methods inherited from class net.shibboleth.idp.attribute.resolver.spring.BaseResolverPluginParser
failOnDependencies, getActivationCondition, getDefinitionId, warnOnDependencies
-
Methods inherited from class net.shibboleth.ext.spring.util.AbstractCustomBeanDefinitionParser
registerBeanDefinition
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
doParse, getBeanClassName, getParentName, parseInternal
-
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
parse, postProcessComponentDefinition, resolveId, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback, shouldParseNameAsAliases
-
-
-
-
Field Detail
-
TYPE_NAME_RESOLVER
@Nonnull public static final QName TYPE_NAME_RESOLVER
Schema type - resolver.
-
log
@Nonnull private final org.slf4j.Logger log
Class logger.
-
-
Method Detail
-
getNativeBeanClass
protected Class<PairwiseIdDataConnector> getNativeBeanClass()
Per parser indication of what we are building.- Specified by:
getNativeBeanClassin classAbstractDataConnectorParser- Returns:
- the class
-
doV2Parse
protected void doV2Parse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder)Parse the suppliedElementas a legacy format and populate the suppliedBeanDefinitionBuilderas required.- Specified by:
doV2Parsein classAbstractDataConnectorParser- Parameters:
config- the XML element being parsedparserContext- the object encapsulating the current state of the parsing processbuilder- used to define theBeanDefinition- See Also:
AbstractSingleBeanDefinitionParser.doParse(Element, BeanDefinitionBuilder)
-
doParse
protected void doParse(@Nonnull Element config, @Nonnull ParserContext parserContext, @Nonnull BeanDefinitionBuilder builder, @Nullable String generatedIdDefaultName)Parse any common material forPairwiseIdDataConnector.- Parameters:
config- the DOM element under consideration.parserContext- Spring's context.builder- Spring's bean builder.generatedIdDefaultName- the name to give the generated Attribute if none was provided.
-
getLogPrefix
@Nonnull @NotEmpty protected String getLogPrefix()
Return a string which is to be prepended to all log messages.- Overrides:
getLogPrefixin classAbstractDataConnectorParser- Returns:
- "Attribute Definition: '<definitionID>' :"
-
-