use of io.apiman.common.plugin.PluginClassLoader in project apiman by apiman.
the class AbstractPluginRegistry method createPluginClassLoader.
/**
* Creates a plugin classloader for the given plugin file.
*/
protected PluginClassLoader createPluginClassLoader(final File pluginFile) throws IOException {
return new PluginClassLoader(pluginFile, Thread.currentThread().getContextClassLoader()) {
@Override
protected File createWorkDir(File pluginArtifactFile) throws IOException {
// $NON-NLS-1$
File workDir = new File(pluginFile.getParentFile(), ".work");
workDir.mkdirs();
return workDir;
}
};
}
Aggregations