use of org.apache.cxf.tools.plugin.Generator in project cxf by apache.
the class PluginLoader method getFrontEndGenerators.
private List<FrontEndGenerator> getFrontEndGenerators(FrontEnd frontend) {
List<FrontEndGenerator> generators = new ArrayList<>();
String fullClzName = null;
try {
for (Generator generator : frontend.getGenerators().getGenerator()) {
fullClzName = getGeneratorClass(frontend, generator);
Class<?> clz = ClassLoaderUtils.loadClass(fullClzName, this.getClass());
generators.add((FrontEndGenerator) clz.newInstance());
}
} catch (Exception e) {
Message msg = new Message("FRONTEND_PROFILE_LOAD_FAIL", LOG, fullClzName);
LOG.log(Level.SEVERE, msg.toString());
throw new ToolException(msg, e);
}
return generators;
}
Aggregations