public class DefaultPluginRegistry extends Object implements IPluginRegistry
| Constructor and Description |
|---|
DefaultPluginRegistry()
Constructor.
|
DefaultPluginRegistry(File pluginsDir,
Set<URL> pluginRepositories)
Constructor.
|
DefaultPluginRegistry(Map<String,String> configMap)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
copyFromM2(File pluginFile,
io.apiman.common.plugin.PluginCoordinates coordinates)
Try to copy the plugin from the current user's .m2 directory.
|
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.
|
void |
loadPlugin(io.apiman.common.plugin.PluginCoordinates coordinates,
IAsyncResultHandler<io.apiman.common.plugin.Plugin> handler)
Asynchronously loads a plugin.
|
public DefaultPluginRegistry()
public DefaultPluginRegistry(Map<String,String> configMap)
configMap - public void loadPlugin(io.apiman.common.plugin.PluginCoordinates coordinates,
IAsyncResultHandler<io.apiman.common.plugin.Plugin> handler)
IPluginRegistryloadPlugin in interface IPluginRegistryIPluginRegistry.loadPlugin(io.apiman.common.plugin.PluginCoordinates, io.apiman.gateway.engine.async.IAsyncResultHandler)protected io.apiman.common.plugin.PluginClassLoader createPluginClassLoader(File pluginFile) throws IOException
pluginFile - IOExceptionprotected void copyFromM2(File pluginFile, io.apiman.common.plugin.PluginCoordinates coordinates)
pluginFile - coordinates - protected void downloadPlugin(File pluginFile, io.apiman.common.plugin.PluginCoordinates coordinates)
pluginFile - coordinates - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.