org.reactive.beans.factory.config.commons
Class CommonsPlaceholderEvaluator

java.lang.Object
  extended by org.reactive.beans.factory.config.AbstractPlaceholderEvaluator
      extended by org.reactive.beans.factory.config.commons.CommonsPlaceholderEvaluator
All Implemented Interfaces:
PlaceholderEvaluator

public class CommonsPlaceholderEvaluator
extends AbstractPlaceholderEvaluator

Used to evaluate a placeholder using the Commons-Configuration configuration agent.

Since:
20/12/2004
Version:
$Id: CommonsPlaceholderEvaluator.java,v 1.3 2004/12/30 07:35:28 dan_washusen Exp $
Author:
Dan Washusen

Field Summary
protected  org.apache.commons.configuration.Configuration configuration
           
 
Constructor Summary
CommonsPlaceholderEvaluator()
           
 
Method Summary
protected  java.lang.String[] evaluateArray(Placeholder placeholder)
          Evaluate a String[] placeholder.
protected  java.util.List evaluateList(Placeholder placeholder)
          Evaluate a List placeholder.
protected  java.util.Map evaluateMap(Placeholder placeholder)
          Evaluate a Map placeholder.
protected  java.lang.Object evaluateObject(Placeholder placeholder)
          Evaluate a Object placeholder.
protected  java.util.Properties evaluateProperties(Placeholder placeholder)
          Evaluate a Properties placeholder.
protected  java.util.Set evaluateSet(Placeholder placeholder)
          Evaluate a Set placeholder.
protected  java.lang.String evaluateString(Placeholder placeholder)
          Evaluate a String placeholder.
 org.apache.commons.configuration.Configuration getConfiguration()
           
 void setConfiguration(org.apache.commons.configuration.Configuration configuration)
           
 
Methods inherited from class org.reactive.beans.factory.config.AbstractPlaceholderEvaluator
evaluate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

configuration

protected org.apache.commons.configuration.Configuration configuration
Constructor Detail

CommonsPlaceholderEvaluator

public CommonsPlaceholderEvaluator()
Method Detail

getConfiguration

public org.apache.commons.configuration.Configuration getConfiguration()

setConfiguration

public void setConfiguration(org.apache.commons.configuration.Configuration configuration)

evaluateString

protected java.lang.String evaluateString(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a String placeholder.

Specified by:
evaluateString in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateArray

protected java.lang.String[] evaluateArray(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a String[] placeholder.

Specified by:
evaluateArray in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateList

protected java.util.List evaluateList(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a List placeholder.

Specified by:
evaluateList in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateSet

protected java.util.Set evaluateSet(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a Set placeholder.

Specified by:
evaluateSet in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateMap

protected java.util.Map evaluateMap(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a Map placeholder.

Specified by:
evaluateMap in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateProperties

protected java.util.Properties evaluateProperties(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a Properties placeholder.

Specified by:
evaluateProperties in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateObject

protected java.lang.Object evaluateObject(Placeholder placeholder)
Description copied from class: AbstractPlaceholderEvaluator
Evaluate a Object placeholder.

Specified by:
evaluateObject in class AbstractPlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder


Copyright © 2004-2005 reactive.org. All Rights Reserved.