org.sonar.core.config
Class ConfigurationUtils

java.lang.Object
  extended by org.sonar.core.config.ConfigurationUtils

public final class ConfigurationUtils
extends Object

Since:
2.12

Method Summary
static void copyProperties(Properties from, Map<String,String> to)
           
static void copyToCommonsConfiguration(Map<String,String> input, org.apache.commons.configuration.Configuration commonsConfig)
           
static List<Property> getGeneralProperties(DatabaseSessionFactory dbFactory)
           
static List<Property> getProjectProperties(DatabaseSessionFactory dbFactory, String moduleKey)
           
static Properties interpolateEnvVariables(Properties properties)
           
static Properties interpolateVariables(Properties properties, Map<String,String> variables)
           
static Properties openProperties(File file)
           
static Properties readInputStream(InputStream input)
          Note that the input stream is closed in this method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyProperties

public static void copyProperties(Properties from,
                                  Map<String,String> to)

openProperties

public static Properties openProperties(File file)
                                 throws IOException
Throws:
IOException

readInputStream

public static Properties readInputStream(InputStream input)
                                  throws IOException
Note that the input stream is closed in this method.

Throws:
IOException

interpolateEnvVariables

public static Properties interpolateEnvVariables(Properties properties)

interpolateVariables

public static Properties interpolateVariables(Properties properties,
                                              Map<String,String> variables)

getProjectProperties

public static List<Property> getProjectProperties(DatabaseSessionFactory dbFactory,
                                                  String moduleKey)

getGeneralProperties

public static List<Property> getGeneralProperties(DatabaseSessionFactory dbFactory)

copyToCommonsConfiguration

public static void copyToCommonsConfiguration(Map<String,String> input,
                                              org.apache.commons.configuration.Configuration commonsConfig)


Copyright © 2009-2011 SonarSource. All Rights Reserved.