org.kuali.rice.core.impl.config.property
Class ConfigLogger

java.lang.Object
  extended by org.kuali.rice.core.impl.config.property.ConfigLogger

public class ConfigLogger
extends Object

Logs information about the configuration at the DEBUG level.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
ConfigLogger()
           
 
Method Summary
static Map<String,String> getDisplaySafeConfig(Map properties)
          Returns a Map of configuration paramters that have display-safe values.
static String getDisplaySafeValue(String name, String value)
          Returns a value for a parameter that is safe for displaying on screen or in a log file.
static void logConfig(Config config)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigLogger

public ConfigLogger()
Method Detail

logConfig

public static void logConfig(Config config)

getDisplaySafeValue

public static String getDisplaySafeValue(String name,
                                         String value)
Returns a value for a parameter that is safe for displaying on screen or in a log file.

Parameters:
name - the name of the parameter
value - the parameter value
Returns:
the parameter value if the parameter is non-secret, or a replacement if the parameter is secret

getDisplaySafeConfig

public static Map<String,String> getDisplaySafeConfig(Map properties)
Returns a Map of configuration paramters that have display-safe values. This allows for the suppression of sensitive configuration paramters from being displayed (i.e. passwords).



Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.