Class ConfigurationUtil

java.lang.Object
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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    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 Details

    • ConfigurationUtil

      public ConfigurationUtil()
  • Method Details

    • 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