Stuart McCulloch | 26e7a5a | 2011-10-17 10:31:43 +0000 | [diff] [blame] | 1 | package aQute.lib.spring; |
| 2 | |
| 3 | import java.util.ArrayList; |
| 4 | import java.util.List; |
| 5 | |
| 6 | import 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 | */ |
| 18 | public 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 | } |