net.dpml.util
Interface Resolver


public interface Resolver

Interace implemented by a value (key, ref, and property) resolver.

Version:
2.0.2
Author:
Digital Product Management Laboratory

Method Summary
 String getProperty(String key)
          Return a property value.
 String getProperty(String key, String value)
          Return a property value.
 String resolve(String value)
          Symbolic expansion of a supplied value.
 

Method Detail

getProperty

String getProperty(String key)
Return a property value.

Parameters:
key - the property key
Returns:
the property value

getProperty

String getProperty(String key,
                   String value)
Return a property value.

Parameters:
key - the property key
value - the default value
Returns:
the property value

resolve

String resolve(String value)
Symbolic expansion of a supplied value. Replace any occurances of ${[key]} with the value of the property assigned to the [key] in system properties.

Parameters:
value - a string containing possibly multiple ${[value]} sequences
Returns:
the expanded string