org.sonar.server.plugins
Class DefaultServerPluginRepository
java.lang.Object
org.sonar.server.plugins.DefaultServerPluginRepository
- All Implemented Interfaces:
- BatchComponent, PluginRepository, ServerPluginRepository, ServerComponent
public class DefaultServerPluginRepository
- extends Object
- implements ServerPluginRepository
- Since:
- 2.2
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultServerPluginRepository
public DefaultServerPluginRepository(PluginDeployer deployer)
start
public void start()
stop
public void stop()
disable
public void disable(String pluginKey)
- Description copied from interface:
ServerPluginRepository
- 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
- Specified by:
disable
in interface ServerPluginRepository
isDisabled
public boolean isDisabled(String pluginKey)
- Specified by:
isDisabled
in interface ServerPluginRepository
- Parameters:
pluginKey
- can not be null
getPlugins
public Collection<Plugin> getPlugins()
- Specified by:
getPlugins
in interface PluginRepository
getPlugin
public Plugin getPlugin(String key)
- Specified by:
getPlugin
in interface PluginRepository
getClassLoader
public ClassLoader getClassLoader(String pluginKey)
getClass
public Class getClass(String pluginKey,
String classname)
getProperties
public Property[] getProperties(Plugin plugin)
- Specified by:
getProperties
in interface PluginRepository
getMetadata
public Collection<PluginMetadata> getMetadata()
- Description copied from interface:
PluginRepository
- Metadata of installed plugins. Metadata includes all the fields available in update center
(plugin key, name, version, description, license, ...) and some technical information like
list of embedded libraries and classloader strategy.
- Specified by:
getMetadata
in interface PluginRepository
getMetadata
public PluginMetadata getMetadata(String pluginKey)
- Description copied from interface:
PluginRepository
- Search for an installed plugin. Returns null if the plugin is not installed.
- Specified by:
getMetadata
in interface PluginRepository
Copyright © 2009-2012 SonarSource. All Rights Reserved.