blob: d9c60cd0f067c88c982a65a5e4050d45d76f9903 [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 JPAComponent extends XMLTypeProcessor {
18
19 protected List<XMLType> getTypes(Analyzer analyzer) throws Exception {
20 List<XMLType> types = new ArrayList<XMLType>();
21 process(types,"jpa.xsl", "META-INF", "persistence.xml");
22 return types;
23 }
24}