consciouscode.seedling.junit
Class MockConfigLayer

java.lang.Object
  extended by consciouscode.seedling.config.StandardConfigLayer
      extended by consciouscode.seedling.junit.MockConfigLayer
All Implemented Interfaces:
ConfigLayer

public class MockConfigLayer
extends StandardConfigLayer
implements ConfigLayer

Class documentation.


Constructor Summary
MockConfigLayer(PropertiesConfigEvaluator defaultEvaluator)
           
 
Method Summary
 void collectNodeNames(String branchPath, Collection<String> names)
           
 Properties configure(String path)
          Creates a new Properties-based configuration for the given full path.
protected  ConfigResource loadConfig(NodePath configPath)
           
protected  ConfigResource loadImplicitBranchConfig(NodePath configPath)
           
 void setNodeConfiguration(String path, Properties props)
          Uses the given properties to configure a node.
 
Methods inherited from class consciouscode.seedling.config.StandardConfigLayer
getConfigLoader, getConfigResources, getResourceTree, getResourceUrl, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface consciouscode.seedling.config.ConfigLayer
getConfigResources
 

Constructor Detail

MockConfigLayer

public MockConfigLayer(PropertiesConfigEvaluator defaultEvaluator)
Method Detail

configure

public Properties configure(String path)
Creates a new Properties-based configuration for the given full path.

Parameters:
path - must be a full path.

setNodeConfiguration

public void setNodeConfiguration(String path,
                                 Properties props)
Uses the given properties to configure a node.

Parameters:
path - must be a full path.

collectNodeNames

public void collectNodeNames(String branchPath,
                             Collection<String> names)
Specified by:
collectNodeNames in interface ConfigLayer
Overrides:
collectNodeNames in class StandardConfigLayer
Parameters:
branchPath - must be an absolute path.

loadConfig

protected ConfigResource loadConfig(NodePath configPath)
Overrides:
loadConfig in class StandardConfigLayer

loadImplicitBranchConfig

protected ConfigResource loadImplicitBranchConfig(NodePath configPath)
Overrides:
loadImplicitBranchConfig in class StandardConfigLayer


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