org.reactive.beans.factory.config.properties
Class PropertiesPlaceholderEvaluator

java.lang.Object
  extended by org.reactive.beans.factory.config.properties.PropertiesPlaceholderEvaluator
All Implemented Interfaces:
PlaceholderEvaluator

public class PropertiesPlaceholderEvaluator
extends java.lang.Object
implements PlaceholderEvaluator

Used to evaluate a placeholder using the Properties class. Only placeholders of type String can be evaluated using this class.

Note: This class is basically equivelant to Spring's org.springframework.beans.factory.config.PropertyResourceConfigurer by Juergen Hoeller.

Since:
20/12/2004
Version:
$Id: PropertiesPlaceholderEvaluator.java,v 1.2 2004/12/30 23:28:28 dan_washusen Exp $
Author:
Dan Washusen
See Also:
PropertiesConfigurationFactory

Field Summary
protected  org.apache.commons.logging.Log logger
           
 
Constructor Summary
PropertiesPlaceholderEvaluator()
           
 
Method Summary
 java.lang.Object evaluate(Placeholder placeholder)
          Evaluates an expression to a value defined in the configuration agent.
 java.util.Properties getProperties()
           
 void setProperties(java.util.Properties properties)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final org.apache.commons.logging.Log logger
Constructor Detail

PropertiesPlaceholderEvaluator

public PropertiesPlaceholderEvaluator()
Method Detail

getProperties

public java.util.Properties getProperties()

setProperties

public void setProperties(java.util.Properties properties)

evaluate

public java.lang.Object evaluate(Placeholder placeholder)
Description copied from interface: PlaceholderEvaluator
Evaluates an expression to a value defined in the configuration agent.

Specified by:
evaluate in interface PlaceholderEvaluator
Parameters:
placeholder - The placeholder to evaluate
Returns:
The value returned from the configuration source


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