edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector
Class BaseDataConnectorBeanDefinitionParser

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
              extended by edu.internet2.middleware.shibboleth.common.config.attribute.resolver.dataConnector.BaseDataConnectorBeanDefinitionParser
All Implemented Interfaces:
BeanDefinitionParser
Direct Known Subclasses:
ComputedIDDataConnectorBeanDefinitionParser, LdapDataConnectorBeanDefinitionParser, RDBMSDataConnectorBeanDefinitionParser, StaticDataConnectorBeanDefinitionParser, StoredIDDataConnectorBeanDefinitionParser

public abstract class BaseDataConnectorBeanDefinitionParser
extends AbstractResolutionPlugInBeanDefinitionParser

Base spring bean definition parser for data connectors. DataConnector implementations should provide a custom BeanDefinitionParser by extending this class and overriding the doParse(String, Element, Map, BeanDefinitionBuilder, ParserContext) method to parse any additional attributes or elements it requires. Standard attributes and elements defined by the ResolutionPlugIn and DataConnector schemas will automatically attempt to be parsed.


Field Summary
static QName FAILOVER_DATA_CONNECTOR_ELEMENT_NAME
          Failover data connector attribute name.
 
Fields inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPlugInBeanDefinitionParser
DEPENDENCY_ELEMENT_NAME
 
Fields inherited from class org.springframework.beans.factory.xml.AbstractBeanDefinitionParser
ID_ATTRIBUTE
 
Constructor Summary
BaseDataConnectorBeanDefinitionParser()
           
 
Method Summary
protected  void doParse(String pluginId, Element pluginConfig, Map<QName,List<Element>> pluginConfigChildren, BeanDefinitionBuilder pluginBuilder, ParserContext parserContext)
          Parses the plugin configuration.
 
Methods inherited from class edu.internet2.middleware.shibboleth.common.config.attribute.resolver.AbstractResolutionPlugInBeanDefinitionParser
doParse, parseDependencies, resolveId
 
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

FAILOVER_DATA_CONNECTOR_ELEMENT_NAME

public static final QName FAILOVER_DATA_CONNECTOR_ELEMENT_NAME
Failover data connector attribute name.

Constructor Detail

BaseDataConnectorBeanDefinitionParser

public BaseDataConnectorBeanDefinitionParser()
Method Detail

doParse

protected void doParse(String pluginId,
                       Element pluginConfig,
                       Map<QName,List<Element>> pluginConfigChildren,
                       BeanDefinitionBuilder pluginBuilder,
                       ParserContext parserContext)
Parses the plugin configuration.

Specified by:
doParse in class AbstractResolutionPlugInBeanDefinitionParser
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


Copyright © 2006-2011 Internet2. All Rights Reserved.