org.sonar.server.plugins
Class DefaultServerPluginRepository

java.lang.Object
  extended by org.sonar.server.plugins.DefaultServerPluginRepository
All Implemented Interfaces:
BatchComponent, PluginRepository, ServerPluginRepository, ServerComponent

public class DefaultServerPluginRepository
extends Object
implements ServerPluginRepository

Since:
2.2

Constructor Summary
DefaultServerPluginRepository(PluginDeployer deployer)
           
 
Method Summary
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServerPluginRepository

public DefaultServerPluginRepository(PluginDeployer deployer)
Method Detail

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 :

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.