blob: fc219c1f927bdb76ac4636c4271d96d5575a4fc7 [file] [log] [blame]
Stuart McCullochf3173222012-06-07 21:57:32 +00001package aQute.lib.spring;
2
3import java.util.*;
4
Stuart McCulloch42151ee2012-07-16 13:43:38 +00005import aQute.bnd.osgi.*;
Stuart McCullochf3173222012-06-07 21:57:32 +00006
7/**
8 * This component is called when we find a resource in the META-INF/*.xml
Stuart McCulloch4482c702012-06-15 13:27:53 +00009 * pattern. We parse the resource and and the imports to the builder. Parsing is
10 * done with XSLT (first time I see the use of having XML for the Spring
11 * configuration files!).
Stuart McCullochf3173222012-06-07 21:57:32 +000012 *
13 * @author aqute
Stuart McCullochf3173222012-06-07 21:57:32 +000014 */
15public class JPAComponent extends XMLTypeProcessor {
Stuart McCulloch4482c702012-06-15 13:27:53 +000016
Stuart McCulloch2929e2d2012-08-07 10:57:21 +000017 @Override
Stuart McCulloch4482c702012-06-15 13:27:53 +000018 protected List<XMLType> getTypes(Analyzer analyzer) throws Exception {
19 List<XMLType> types = new ArrayList<XMLType>();
20 process(types, "jpa.xsl", "META-INF", "persistence.xml");
21 return types;
22 }
Stuart McCullochf3173222012-06-07 21:57:32 +000023}