ColdSpring 2.0 - Narwhal

coldspring.beans.factory
Class PropertyStringResolver

WEB-INF.cftags.component
        extended by coldspring.beans.factory.PropertyStringResolver
All Implemented Interfaces:
StringValueResolver

public class PropertyStringResolver
extends WEB-INF.cftags.component

String resolver for Dynamic Properties


Constructor Summary
init(struct dynamicProperties)
          Constructor
 
Method Summary
 struct getDynamicProperties()
private string getPropertyRegex()
private string replacePropertyValues(array propertyStrings, string value)
          Given the set of properties being passed through, the value string has it's ${key}'s' replaced
private void resolveRecursiveProperties()
          goes through the current dynamic properties, and resolves any recursiveness
 any resolveStringValue(string string)
          Resolves ${key} into it's given property
private void setDynamicProperties(struct dynamicProperties)
private void setPropertyRegex(string propertyRegex)
 
Methods inherited from class WEB-INF.cftags.component
 

Constructor Detail

init

public init(struct dynamicProperties)
Constructor

Parameters:
dynamicProperties - A struct of key value pairs, for which the keys will be used to translate '${key}' string values in BeanDefinitions properties into their corresponding values.
Method Detail

getDynamicProperties

public struct getDynamicProperties()


getPropertyRegex

private string getPropertyRegex()


replacePropertyValues

private string replacePropertyValues(array propertyStrings, string value)
Given the set of properties being passed through, the value string has it's ${key}'s' replaced

Parameters:
propertyStrings - an array of property strings as ${key}
value - the string value to replace the values in

resolveRecursiveProperties

private void resolveRecursiveProperties()
goes through the current dynamic properties, and resolves any recursiveness


resolveStringValue

public any resolveStringValue(string string)
Resolves ${key} into it's given property. Supports recursive ${key} translation

Specified by:
resolveStringValue in interface StringValueResolver
Parameters:
string

setDynamicProperties

private void setDynamicProperties(struct dynamicProperties)

Parameters:
dynamicProperties

setPropertyRegex

private void setPropertyRegex(string propertyRegex)

Parameters:
propertyRegex

ColdSpring 2.0 - Narwhal