public class DefaultServerPluginRepository extends Object implements ServerPluginRepository
| Constructor and Description |
|---|
DefaultServerPluginRepository(PluginDeployer deployer) |
| Modifier and Type | Method and Description |
|---|---|
void |
disable(String pluginKey)
Disabled plugins are not loaded by batch, but they are still installed :
Plugin properties are available in General Settings
Plugin is marked as installed in Update Center
|
Class |
getClass(String pluginKey,
String classname) |
ClassLoader |
getClassLoader(String pluginKey) |
Collection<PluginMetadata> |
getMetadata()
Metadata of installed plugins.
|
PluginMetadata |
getMetadata(String pluginKey)
Search for an installed plugin.
|
Plugin |
getPlugin(String key) |
Collection<Plugin> |
getPlugins() |
Property[] |
getProperties(Plugin plugin) |
boolean |
isDisabled(String pluginKey) |
void |
start() |
void |
stop() |
public DefaultServerPluginRepository(PluginDeployer deployer)
public void start()
public void stop()
public void disable(String pluginKey)
ServerPluginRepositorydisable in interface ServerPluginRepositorypublic boolean isDisabled(String pluginKey)
isDisabled in interface ServerPluginRepositorypluginKey - can not be nullpublic Collection<Plugin> getPlugins()
getPlugins in interface PluginRepositorypublic Plugin getPlugin(String key)
getPlugin in interface PluginRepositorypublic ClassLoader getClassLoader(String pluginKey)
public Property[] getProperties(Plugin plugin)
getProperties in interface PluginRepositorypublic Collection<PluginMetadata> getMetadata()
PluginRepositorygetMetadata in interface PluginRepositorypublic PluginMetadata getMetadata(String pluginKey)
PluginRepositorygetMetadata in interface PluginRepositoryCopyright © 2009-2012 SonarSource. All Rights Reserved.