org.apache.fulcrum.yaafi.framework.util
Class ConfigurationUtil

java.lang.Object
  extended by org.apache.fulcrum.yaafi.framework.util.ConfigurationUtil

public class ConfigurationUtil
extends Object

Helper class to expand the value and all attributes.

Author:
Siegfried Goeschl

Constructor Summary
ConfigurationUtil()
           
 
Method Summary
static void expand(org.apache.avalon.framework.logger.Logger logger, org.apache.avalon.framework.configuration.DefaultConfiguration defaultConfiguration, Map vars)
          Expand place holders found in values or attrbute values with the content of the given variables.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigurationUtil

public ConfigurationUtil()
Method Detail

expand

public static void expand(org.apache.avalon.framework.logger.Logger logger,
                          org.apache.avalon.framework.configuration.DefaultConfiguration defaultConfiguration,
                          Map vars)
                   throws org.apache.avalon.framework.configuration.ConfigurationException
Expand place holders found in values or attrbute values with the content of the given variables. The implementation assumes that the given configuration can be cast to a DefaultConfiguration otherwise we can't use any setters.

Parameters:
logger - the logger to write diagnostic messages
defaultConfiguration - the configuration
vars - the map holding the variables
Throws:
org.apache.avalon.framework.configuration.ConfigurationException - parsing the configuration failed


Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.