org.sonar.server.platform
Class ServerSettings

java.lang.Object
  extended by org.sonar.api.config.Settings
      extended by org.sonar.server.platform.ServerSettings
All Implemented Interfaces:
BatchComponent, ServerComponent

public class ServerSettings
extends Settings

Load settings in the following order (the last override the first) :

  1. general settings persisted in database
  2. file $SONAR_HOME/conf/sonar.properties
  3. environment variables
  4. system properties

Since:
2.12

Field Summary
static String DEPLOY_DIR
           
 
Fields inherited from class org.sonar.api.config.Settings
definitions, properties
 
Constructor Summary
ServerSettings(PropertyDefinitions definitions, org.apache.commons.configuration.Configuration deprecatedConfiguration, javax.servlet.ServletContext servletContext)
           
 
Method Summary
 ServerSettings load()
           
 ServerSettings setSessionFactory(DatabaseSessionFactory sessionFactory)
           
 
Methods inherited from class org.sonar.api.config.Settings
addEnvironmentVariables, addProperties, addProperties, addSystemProperties, appendProperty, clear, createForComponent, getBoolean, getDate, getDateTime, getDefaultValue, getDefinitions, getInt, getKeysStartingWith, getLong, getProperties, getString, getStringArray, getStringArrayBySeparator, hasDefaultValue, hasKey, removeProperty, setProperties, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty, setProperty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEPLOY_DIR

public static final String DEPLOY_DIR
See Also:
Constant Field Values
Constructor Detail

ServerSettings

public ServerSettings(PropertyDefinitions definitions,
                      org.apache.commons.configuration.Configuration deprecatedConfiguration,
                      javax.servlet.ServletContext servletContext)
Method Detail

setSessionFactory

public ServerSettings setSessionFactory(DatabaseSessionFactory sessionFactory)

load

public ServerSettings load()


Copyright © 2009-2012 SonarSource. All Rights Reserved.