aQute.lib.spring.XMLTypeProcessor Maven / Gradle / Ivy
package aQute.lib.spring;
import java.util.*;
import aQute.bnd.header.*;
import aQute.bnd.osgi.*;
import aQute.bnd.service.*;
public class XMLTypeProcessor implements AnalyzerPlugin {
public boolean analyzeJar(Analyzer analyzer) throws Exception {
List types = getTypes(analyzer);
for (XMLType type : types) {
type.analyzeJar(analyzer);
}
return false;
}
protected List getTypes(@SuppressWarnings("unused") Analyzer analyzer) throws Exception {
return new ArrayList();
}
protected void process(List types, String resource, String paths, String pattern) throws Exception {
Parameters map = Processor.parseHeader(paths, null);
for (String path : map.keySet()) {
types.add(new XMLType(getClass().getResource(resource), path, pattern));
}
}
}