org.sonar.server.platform
Class DefaultServerFileSystem

java.lang.Object
  extended by org.sonar.server.platform.DefaultServerFileSystem
All Implemented Interfaces:
ServerFileSystem, ServerComponent

public class DefaultServerFileSystem
extends Object
implements ServerFileSystem

Introspect the filesystem and the classloader to get extension files at startup.

Since:
2.2

Constructor Summary
DefaultServerFileSystem(DatabaseConnector databaseConnector, File homeDir, File deployDir)
          for unit tests
DefaultServerFileSystem(DatabaseConnector databaseConnector, Settings settings)
           
 
Method Summary
 List<File> getCorePlugins()
           
 File getDeployDir()
           
 File getDeployedJdbcDriver()
           
 File getDeployedPluginsDir()
           
 File getDeprecatedPluginsDir()
           
 File getDownloadedPluginsDir()
           
 List<File> getExtensions(String dirName, String... suffixes)
           
 File getHomeDir()
           
 File getJdbcDriver()
           
 List<File> getPluginExtensionXml(String pluginKey)
           
 File getPluginIndex()
           
 File getRemovedPluginsDir()
           
 List<File> getUserPlugins()
           
 File getUserPluginsDir()
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultServerFileSystem

public DefaultServerFileSystem(DatabaseConnector databaseConnector,
                               Settings settings)

DefaultServerFileSystem

public DefaultServerFileSystem(DatabaseConnector databaseConnector,
                               File homeDir,
                               File deployDir)
for unit tests

Method Detail

start

public void start()

getHomeDir

public File getHomeDir()
Specified by:
getHomeDir in interface ServerFileSystem

getDeployDir

public File getDeployDir()

getDeployedJdbcDriver

public File getDeployedJdbcDriver()

getDeployedPluginsDir

public File getDeployedPluginsDir()

getDownloadedPluginsDir

public File getDownloadedPluginsDir()

getRemovedPluginsDir

public File getRemovedPluginsDir()

getJdbcDriver

public File getJdbcDriver()

getCorePlugins

public List<File> getCorePlugins()

getUserPlugins

public List<File> getUserPlugins()

getUserPluginsDir

public File getUserPluginsDir()

getDeprecatedPluginsDir

public File getDeprecatedPluginsDir()

getPluginIndex

public File getPluginIndex()

getExtensions

public List<File> getExtensions(String dirName,
                                String... suffixes)
Specified by:
getExtensions in interface ServerFileSystem
suffixes - the file suffixes. If null, then return all the files, whatever their suffix

getPluginExtensionXml

public List<File> getPluginExtensionXml(String pluginKey)


Copyright © 2009-2012 SonarSource. All Rights Reserved.