blob: 131709ce9354f3cb6f53a226777ea0f9106ac640 [file] [log] [blame]
Stuart McCulloch26e7a5a2011-10-17 10:31:43 +00001package aQute.lib.spring;
2
3import java.util.ArrayList;
4import java.util.List;
5
6import aQute.lib.osgi.Analyzer;
7
8/**
9 * This component is called when we find a resource in the META-INF/*.xml
10 * pattern. We parse the resource and and the imports to the builder.
11 *
12 * Parsing is done with XSLT (first time I see the use of having XML for the
13 * Spring configuration files!).
14 *
15 * @author aqute
16 *
17 */
18public class JPAComponent extends XMLTypeProcessor {
19
20 protected List<XMLType> getTypes(Analyzer analyzer) throws Exception {
21 List<XMLType> types = new ArrayList<XMLType>();
22 process(types,"jpa.xsl", "META-INF", "persistence.xml");
23 return types;
24 }
25}