org.reactive.beans.factory.config
Class AbstractPlaceholderEvaluator

java.lang.Object
  extended by org.reactive.beans.factory.config.AbstractPlaceholderEvaluator
All Implemented Interfaces:
PlaceholderEvaluator
Direct Known Subclasses:
CommonsPlaceholderEvaluator, JFigPlaceholderEvaluator

public abstract class AbstractPlaceholderEvaluator
extends java.lang.Object
implements PlaceholderEvaluator

An abstract placeholder evaluator whos evaluate(Placeholder) method delegates off the an appropriate evaluate method based on the type returned from Placeholder.getType().

Since:
30/12/2004
Version:
$Id: AbstractPlaceholderEvaluator.java,v 1.1 2004/12/30 07:35:29 dan_washusen Exp $
Author:
Dan Washusen

Constructor Summary
AbstractPlaceholderEvaluator()
           
 
Method Summary
 java.lang.Object evaluate(Placeholder placeholder)
          This method delegates off to the appropriate evaluate method.
protected abstract  java.lang.String[] evaluateArray(Placeholder placeholder)
          Evaluate a String[] placeholder.
protected abstract  java.util.List evaluateList(Placeholder placeholder)
          Evaluate a List placeholder.
protected abstract  java.util.Map evaluateMap(Placeholder placeholder)
          Evaluate a Map placeholder.
protected abstract  java.lang.Object evaluateObject(Placeholder placeholder)
          Evaluate a Object placeholder.
protected abstract  java.util.Properties evaluateProperties(Placeholder placeholder)
          Evaluate a Properties placeholder.
protected abstract  java.util.Set evaluateSet(Placeholder placeholder)
          Evaluate a Set placeholder.
protected abstract  java.lang.String evaluateString(Placeholder placeholder)
          Evaluate a String placeholder.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractPlaceholderEvaluator

public AbstractPlaceholderEvaluator()
Method Detail

evaluate

public java.lang.Object evaluate(Placeholder placeholder)
This method delegates off to the appropriate evaluate method.

Specified by:
evaluate in interface PlaceholderEvaluator
Parameters:
placeholder - The placeholder to be evaluated
Returns:
The value retrieved from the configuration agent based on the placeholder
See Also:
evaluateString(Placeholder), evaluateArray(Placeholder), evaluateList(Placeholder), evaluateSet(Placeholder), evaluateMap(Placeholder), evaluateProperties(Placeholder), evaluateObject(Placeholder)

evaluateString

protected abstract java.lang.String evaluateString(Placeholder placeholder)
Evaluate a String placeholder.

Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateArray

protected abstract java.lang.String[] evaluateArray(Placeholder placeholder)
Evaluate a String[] placeholder.

Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateList

protected abstract java.util.List evaluateList(Placeholder placeholder)
Evaluate a List placeholder.

Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateSet

protected abstract java.util.Set evaluateSet(Placeholder placeholder)
Evaluate a Set placeholder.

Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateMap

protected abstract java.util.Map evaluateMap(Placeholder placeholder)
Evaluate a Map placeholder.

Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateProperties

protected abstract java.util.Properties evaluateProperties(Placeholder placeholder)
Evaluate a Properties placeholder.

Parameters:
placeholder - The placeholder to evaluate
Returns:
The value retrieved from the configuration agent based on the placeholder

evaluateObject

protected abstract java.lang.Object evaluateObject(Placeholder placeholder)
Evaluate a Object placeholder.

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.