blob: 60eb922bb776c8796e33a61b898f73498e3eb669 [file] [log] [blame]
Stuart McCullochf3173222012-06-07 21:57:32 +00001package aQute.lib.spring;
2
3import java.util.*;
4
5import aQute.lib.osgi.*;
6
7/**
8 * This component is called when we find a resource in the META-INF/*.xml
9 * pattern. We parse the resource and and the imports to the builder.
10 *
11 * Parsing is done with XSLT (first time I see the use of having XML for the
12 * Spring configuration files!).
13 *
14 * @author aqute
15 *
16 */
17public class SpringXMLType extends XMLTypeProcessor {
18
19 protected List<XMLType> getTypes(Analyzer analyzer) throws Exception {
20 List<XMLType> types = new ArrayList<XMLType>();
21
22 String header = analyzer.getProperty("Bundle-Blueprint", "OSGI-INF/blueprint");
23 process(types,"extract.xsl", header, ".*\\.xml");
24 header = analyzer.getProperty("Spring-Context", "META-INF/spring");
25 process(types,"extract.xsl", header, ".*\\.xml");
26
27 return types;
28 }
29
30
31
32
33}