1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18 package edu.internet2.middleware.shibboleth.common.config.service;
19
20 import javax.xml.namespace.QName;
21
22 import org.opensaml.xml.util.XMLHelper;
23 import org.springframework.beans.factory.config.BeanDefinition;
24 import org.springframework.beans.factory.xml.BeanDefinitionParser;
25 import org.springframework.beans.factory.xml.ParserContext;
26 import org.w3c.dom.Element;
27
28 import edu.internet2.middleware.shibboleth.common.config.SpringConfigurationUtils;
29
30
31 public class ServicesBeanDefinitionParser implements BeanDefinitionParser {
32
33
34 public static final QName ELEMENT_NAME = new QName(ServiceNamespaceHandler.NAMESPACE, "Services");
35
36
37 public static final QName SCHEMA_TYPE = new QName(ServiceNamespaceHandler.NAMESPACE, "ServicesType");
38
39
40 public BeanDefinition parse(Element config, ParserContext context) {
41 SpringConfigurationUtils.parseCustomElements(XMLHelper.getChildElementsByTagNameNS(config,
42 ServiceNamespaceHandler.NAMESPACE, "Service"), context);
43 return null;
44 }
45 }