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)
ServerPluginRepository
disable
in interface ServerPluginRepository
public boolean isDisabled(String pluginKey)
isDisabled
in interface ServerPluginRepository
pluginKey
- can not be nullpublic Collection<Plugin> getPlugins()
getPlugins
in interface PluginRepository
public Plugin getPlugin(String key)
getPlugin
in interface PluginRepository
public ClassLoader getClassLoader(String pluginKey)
public Property[] getProperties(Plugin plugin)
getProperties
in interface PluginRepository
public Collection<PluginMetadata> getMetadata()
PluginRepository
getMetadata
in interface PluginRepository
public PluginMetadata getMetadata(String pluginKey)
PluginRepository
getMetadata
in interface PluginRepository
Copyright © 2009-2012 SonarSource. All Rights Reserved.