blob: 2f08e10b097f65694584c1c313bc15bd710d460e [file] [log] [blame]
Stuart McCullochbb014372012-06-07 21:57:32 +00001package aQute.lib.spring;
2
3import java.util.*;
4
Stuart McCulloch39cc9ac2012-07-16 13:43:38 +00005import aQute.bnd.osgi.*;
Stuart McCullochbb014372012-06-07 21:57:32 +00006
7/**
8 * This component is called when we find a resource in the META-INF/*.xml
Stuart McCulloch2286f232012-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 McCullochbb014372012-06-07 21:57:32 +000012 *
13 * @author aqute
Stuart McCullochbb014372012-06-07 21:57:32 +000014 */
15public class JPAComponent extends XMLTypeProcessor {
Stuart McCulloch2286f232012-06-15 13:27:53 +000016
17 protected List<XMLType> getTypes(Analyzer analyzer) throws Exception {
18 List<XMLType> types = new ArrayList<XMLType>();
19 process(types, "jpa.xsl", "META-INF", "persistence.xml");
20 return types;
21 }
Stuart McCullochbb014372012-06-07 21:57:32 +000022}