use of org.apache.cxf.tools.common.toolspec.ToolContainer in project cxf by apache.
the class PluginLoader method loadContainerClass.
private Class<? extends ToolContainer> loadContainerClass(String fullClzName) {
Class<?> clz = null;
try {
clz = ClassLoaderUtils.loadClass(fullClzName, getClass());
} catch (Exception e) {
Message msg = new Message("LOAD_CONTAINER_CLASS_FAILED", LOG, fullClzName);
LOG.log(Level.SEVERE, msg.toString());
throw new ToolException(msg, e);
}
if (!ToolContainer.class.isAssignableFrom(clz)) {
Message message = new Message("CLZ_SHOULD_IMPLEMENT_INTERFACE", LOG, clz.getName());
LOG.log(Level.SEVERE, message.toString());
throw new ToolException(message);
}
return clz.asSubclass(ToolContainer.class);
}
Aggregations