aQute.lib.spring.JPAComponent Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of biz.aQute.bnd Show documentation
Show all versions of biz.aQute.bnd Show documentation
This command line utility is the Swiss army knife of OSGi. It provides you with a breadth of tools to understand and manage OSGi based systems. This project basically uses bndlib.
package aQute.lib.spring;
import java.util.ArrayList;
import java.util.List;
import aQute.bnd.annotation.plugin.BndPlugin;
import aQute.bnd.osgi.Analyzer;
/**
* This component is called when we find a resource in the META-INF/*.xml
* pattern. We parse the resource and and the imports to the builder. Parsing is
* done with XSLT (first time I see the use of having XML for the Spring
* configuration files!).
*
* @author aqute
*/
@BndPlugin(name = "jpa")
public class JPAComponent extends XMLTypeProcessor {
@Override
protected List getTypes(Analyzer analyzer) throws Exception {
List types = new ArrayList();
process(types, "jpa.xsl", "META-INF", "persistence.xml");
return types;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy