edu.internet2.middleware.shibboleth.common.config.attribute.filtering
Class BaseFilterBeanDefinitionParser
java.lang.Object
org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
edu.internet2.middleware.shibboleth.common.config.attribute.filtering.BaseFilterBeanDefinitionParser
- All Implemented Interfaces:
- org.springframework.beans.factory.xml.BeanDefinitionParser
- Direct Known Subclasses:
- AbstractEntityAttributeMatchFunctorBeanDefinitionParser, AbstractEntityGroupMatchFunctorBeanDefinitionParser, AbstractNameIDFormatSupportedMatchFunctorBeanDefinitionParser, AbstractRegexMatchFunctorBeanDefinitionParser, AbstractStringMatchFunctorBeanDefinitionParser, AndMatchFunctorBeanDefinitionParser, AnyMatchFunctorBeanDefinitionParser, AttributeFilterPolicyBeanDefinitionParser, AttributeRuleBeanDefinitionParser, NotMatchFunctorBeanDefinitionParser, NumOfAttributeValuesMatchFunctorBeanDefinitionParser, OrMatchFunctorBeanDefinitionParser, ScriptMatchFunctorBeanDefinitionParser
public abstract class BaseFilterBeanDefinitionParser
- extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
Base class for Spring bean definition parsers within the filter engine configuration. This base class is responsible
for generating an ID for the Spring bean that is unique within all the policy components loaded.
Field Summary |
private static org.opensaml.common.IdentifierGenerator |
idGen
Generator of unique IDs. |
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
ID_ATTRIBUTE |
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser |
doParse, doParse, getBeanClass, getBeanClassName, getParentName, parseInternal |
Methods inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser |
parse, postProcessComponentDefinition, registerBeanDefinition, shouldFireEvents, shouldGenerateId, shouldGenerateIdAsFallback |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
idGen
private static org.opensaml.common.IdentifierGenerator idGen
- Generator of unique IDs.
BaseFilterBeanDefinitionParser
public BaseFilterBeanDefinitionParser()
resolveId
protected String resolveId(Element configElement,
org.springframework.beans.factory.support.AbstractBeanDefinition beanDefinition,
org.springframework.beans.factory.xml.ParserContext parserContext)
-
- Overrides:
resolveId
in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
getQualifiedId
protected String getQualifiedId(Element configElement,
String componentNamespace,
String localId)
- Generates an ID for a filter engine component. If the given localId is null a random one will be generated.
- Parameters:
configElement
- component configuration elementcomponentNamespace
- namespace for the componentlocalId
- local id or null
- Returns:
- unique ID for the componenent
getAbsoluteReference
protected String getAbsoluteReference(Element configElement,
String componentNamespace,
String reference)
- Gets the absolute refrence given a possibly relative reference.
- Parameters:
configElement
- component configuration elementcomponentNamespace
- namespace for the componentreference
- reference to convert into absolute form
- Returns:
- absolute form of the reference
Copyright © 1999-2012. All Rights Reserved.