edu.internet2.middleware.shibboleth.common.config.attribute.resolver
Class AbstractResolutionPlugInBeanDefinitionParser

java.lang.Object
  extended by org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
      extended by org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
          extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPlugInBeanDefinitionParser
All Implemented Interfaces:
org.springframework.beans.factory.xml.BeanDefinitionParser
Direct Known Subclasses:
BaseAttributeDefinitionBeanDefinitionParser, BaseDataConnectorBeanDefinitionParser, BasePrincipalConnectrBeanDefinitionParser

public abstract class AbstractResolutionPlugInBeanDefinitionParser
extends org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

Base class for Spring bean definition parser for Shibboleth resolver plug-ins.


Field Summary
static QName DEPENDENCY_ELEMENT_NAME
          Name of resolution plug-in dependency.
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
AbstractResolutionPlugInBeanDefinitionParser()
           
 
Method Summary
protected  void doParse(Element config, org.springframework.beans.factory.xml.ParserContext parserContext, org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
          Parses the plugins ID and attribute definition and data connector dependencies.
protected abstract  void doParse(String pluginId, Element pluginConfig, Map<QName,List<Element>> pluginConfigChildren, org.springframework.beans.factory.support.BeanDefinitionBuilder pluginBuilder, org.springframework.beans.factory.xml.ParserContext parserContext)
          Parses the plugin configuration.
protected  List<String> parseDependencies(List<Element> elements)
          Parse dependency elements.
protected  String resolveId(Element element, org.springframework.beans.factory.support.AbstractBeanDefinition definition, org.springframework.beans.factory.xml.ParserContext parserContext)
          
 
Methods inherited from class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser
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
 

Field Detail

DEPENDENCY_ELEMENT_NAME

public static final QName DEPENDENCY_ELEMENT_NAME
Name of resolution plug-in dependency.

Constructor Detail

AbstractResolutionPlugInBeanDefinitionParser

public AbstractResolutionPlugInBeanDefinitionParser()
Method Detail

doParse

protected final void doParse(Element config,
                             org.springframework.beans.factory.xml.ParserContext parserContext,
                             org.springframework.beans.factory.support.BeanDefinitionBuilder builder)
Parses the plugins ID and attribute definition and data connector dependencies.

Overrides:
doParse in class org.springframework.beans.factory.xml.AbstractSingleBeanDefinitionParser

doParse

protected abstract void doParse(String pluginId,
                                Element pluginConfig,
                                Map<QName,List<Element>> pluginConfigChildren,
                                org.springframework.beans.factory.support.BeanDefinitionBuilder pluginBuilder,
                                org.springframework.beans.factory.xml.ParserContext parserContext)
Parses the plugin configuration.

Parameters:
pluginId - unique ID of the plugin
pluginConfig - root plugin configuration element
pluginConfigChildren - immediate children of the root configuration element (provided to save from having to reparse them)
pluginBuilder - bean definition builder for the plugin
parserContext - current parsing context

resolveId

protected String resolveId(Element element,
                           org.springframework.beans.factory.support.AbstractBeanDefinition definition,
                           org.springframework.beans.factory.xml.ParserContext parserContext)

Overrides:
resolveId in class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser

parseDependencies

protected List<String> parseDependencies(List<Element> elements)
Parse dependency elements.

Parameters:
elements - DOM elements of type resolver:PluginDependencyType
Returns:
the dependency IDs


Copyright © 2006-2011 Internet2. All Rights Reserved.