public abstract class AbstractPluginRegistry extends Object implements IPluginRegistry
IPluginRegistry.| Constructor and Description |
|---|
AbstractPluginRegistry()
Constructor.
|
AbstractPluginRegistry(File pluginsDir)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected io.apiman.common.plugin.PluginClassLoader |
createPluginClassLoader(File pluginFile)
Creates a plugin classloader for the given plugin file.
|
protected boolean |
downloadFromMavenRepo(File pluginFile,
io.apiman.common.plugin.PluginCoordinates coordinates,
URL mavenRepoUrl)
Tries to download the plugin from the given remote maven repository.
|
protected void |
downloadPlugin(File pluginFile,
io.apiman.common.plugin.PluginCoordinates coordinates)
Downloads the plugin via its maven GAV information.
|
protected Set<URL> |
getMavenRepositories()
A valid set of remove maven repository URLs.
|
io.apiman.common.plugin.Plugin |
loadPlugin(io.apiman.common.plugin.PluginCoordinates coordinates)
Loads a plugin with the given coordinates.
|
void |
setPluginsDir(File pluginsDir) |
public AbstractPluginRegistry()
public AbstractPluginRegistry(File pluginsDir)
pluginsDir - the plugin's directorypublic io.apiman.common.plugin.Plugin loadPlugin(io.apiman.common.plugin.PluginCoordinates coordinates)
throws InvalidPluginException
IPluginRegistryloadPlugin in interface IPluginRegistrycoordinates - plugin coordinatesInvalidPluginException - the plugin is invalidIPluginRegistry.loadPlugin(io.apiman.common.plugin.PluginCoordinates)protected io.apiman.common.plugin.PluginClassLoader createPluginClassLoader(File pluginFile) throws IOException
pluginFile - IOExceptionprotected void downloadPlugin(File pluginFile, io.apiman.common.plugin.PluginCoordinates coordinates)
pluginFile - coordinates - protected boolean downloadFromMavenRepo(File pluginFile, io.apiman.common.plugin.PluginCoordinates coordinates, URL mavenRepoUrl)
pluginFile - coordinates - mavenRepoUrl - protected Set<URL> getMavenRepositories()
public void setPluginsDir(File pluginsDir)
pluginsDir - the pluginsDir to setCopyright © 2015 JBoss, a division of Red Hat. All rights reserved.