org.apache.avalon.logging.impl
Class LoggerParameter

java.lang.Object
  extended byorg.apache.avalon.util.criteria.Parameter
      extended byorg.apache.avalon.logging.impl.LoggerParameter
All Implemented Interfaces:
Serializable

public class LoggerParameter
extends Parameter

A parameter descriptor that supports transformation of a a string to a Logger instance.

Version:
$Revision: 1.3 $
Author:
Avalon Development Team
See Also:
Serialized Form

Constructor Summary
LoggerParameter(String key, Logger logger)
          Creation of a new logger parameter.
 
Method Summary
 Object resolve(Object value)
          Resolve a supplied string to a configuration
 
Methods inherited from class org.apache.avalon.util.criteria.Parameter
getDefault, getKey, getKeys, getParameterClass, isOptional, isRequired, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoggerParameter

public LoggerParameter(String key,
                       Logger logger)
Creation of a new logger parameter. The parameter support convertion of strings in the form "debug", "info", "warn", "error", "fatal" and "none" to an equivalent logger.

Parameters:
key - the parameter key
logger - the default logger
Method Detail

resolve

public Object resolve(Object value)
               throws CriteriaException
Resolve a supplied string to a configuration

Parameters:
value - the value to resolve
Throws:
CriteriaException - if an error occurs


Copyright © The Apache Software Foundation. All Rights Reserved.