org.sonar.batch.bootstrap
Class BatchPluginRepository

java.lang.Object
  extended by org.sonar.batch.bootstrap.BatchPluginRepository
All Implemented Interfaces:
BatchComponent, PluginRepository

public class BatchPluginRepository
extends Object
implements PluginRepository


Constructor Summary
BatchPluginRepository(ArtifactDownloader artifactDownloader, Settings settings)
           
 
Method Summary
 Collection<PluginMetadata> getMetadata()
          Metadata of installed plugins.
 PluginMetadata getMetadata(String pluginKey)
          Search for an installed plugin.
 Plugin getPlugin(String key)
           
 Collection<Plugin> getPlugins()
           
 Map<String,Plugin> getPluginsByKey()
           
 Map<PluginMetadata,Plugin> getPluginsByMetadata()
           
 Property[] getProperties(Plugin plugin)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BatchPluginRepository

public BatchPluginRepository(ArtifactDownloader artifactDownloader,
                             Settings settings)
Method Detail

start

public void start()

stop

public void stop()

getPlugins

public Collection<Plugin> getPlugins()
Specified by:
getPlugins in interface PluginRepository

getPlugin

public Plugin getPlugin(String key)
Specified by:
getPlugin in interface PluginRepository

getPluginsByKey

public Map<String,Plugin> getPluginsByKey()

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

getPluginsByMetadata

public Map<PluginMetadata,Plugin> getPluginsByMetadata()


Copyright © 2009-2011 SonarSource. All Rights Reserved.