consciouscode.seedling.config.properties
Class PropertiesConfigLoader

java.lang.Object
  extended by consciouscode.seedling.config.properties.PropertiesConfigLoader
All Implemented Interfaces:
ConfigLoader

public class PropertiesConfigLoader
extends Object
implements ConfigLoader

Configuration loader for files with suffix ".properties".


Constructor Summary
PropertiesConfigLoader(PropertiesConfigEvaluator defaultEvaluator)
           
 
Method Summary
 ConfigEvaluator getDefaultEvaluator()
           
 ConfigResource loadConfigResource(ResourceTree resources, NodePath nodeAddress)
          Returns a configuration resource for a specified node, if one exists in the given resource tree.
 String nodeNameForResource(String resourceName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertiesConfigLoader

public PropertiesConfigLoader(PropertiesConfigEvaluator defaultEvaluator)
Method Detail

getDefaultEvaluator

public ConfigEvaluator getDefaultEvaluator()

nodeNameForResource

public String nodeNameForResource(String resourceName)
Specified by:
nodeNameForResource in interface ConfigLoader

loadConfigResource

public ConfigResource loadConfigResource(ResourceTree resources,
                                         NodePath nodeAddress)
                                  throws ConfigLoadingException
Description copied from interface: ConfigLoader
Returns a configuration resource for a specified node, if one exists in the given resource tree.

Specified by:
loadConfigResource in interface ConfigLoader
nodeAddress - identifies the desired node. It must be a full path.
Returns:
null if no configuration resource exists for the node within the resource tree.
Throws:
ConfigLoadingException


Copyright © 2001–2012 Todd V. Jonker. All Rights Reserved.