consciouscode.seedling.config
Interface ConfigLayer

All Known Implementing Classes:
MockConfigLayer, StandardConfigLayer

public interface ConfigLayer

Represents a single layer of configuration resources. Several layers are arranged into a ConfigTree which is then used to run a seedling.

Each installed module provides one or more ConfigLayers.


Method Summary
 void collectNodeNames(String branchPath, Collection<String> names)
           
 Iterable<ConfigResource> getConfigResources(NodeReference nodeRef)
          Finds all configuration resources in this layer that are relevant to a specified node.
 

Method Detail

getConfigResources

Iterable<ConfigResource> getConfigResources(NodeReference nodeRef)
                                            throws ConfigurationException
Finds all configuration resources in this layer that are relevant to a specified node.

Parameters:
nodeRef - identifies the desired node.
Returns:
a sequence of resources, highest priority first. Neither the returned Iterable nor any of its entries may be null.
Throws:
ConfigurationException - if there's a problem loading the relevant configuration resources.

collectNodeNames

void collectNodeNames(String branchPath,
                      Collection<String> names)
Parameters:
branchPath - must be an absolute path.
names -


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