consciouscode.seedling.config
Class ImplicitBranchConfigResource

java.lang.Object
  extended by consciouscode.seedling.config.ImplicitBranchConfigResource
All Implemented Interfaces:
ConfigResource

public class ImplicitBranchConfigResource
extends Object
implements ConfigResource

An artificial configuration resource implied by the presence of a directory in a ConfigLayer. It creates child nodes by asking the parent branch to create a child via BranchingBranch.provisionChildBranch().


Constructor Summary
ImplicitBranchConfigResource(Resource resource)
           
ImplicitBranchConfigResource(String identifier)
           
 
Method Summary
 ConfigEvaluator getEvaluator(NodeReference locationIgnored)
          Returns the evaluator being used by this resource.
 String getIdentifier()
          Returns a string identifying this resource, for use in messages.
 Resource getResource()
          Gets the underlying resource from which this configuration is loaded.
 void writeConfiguration(Writer out)
          Prints the content of this resource to a stream.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplicitBranchConfigResource

public ImplicitBranchConfigResource(String identifier)

ImplicitBranchConfigResource

public ImplicitBranchConfigResource(Resource resource)
Method Detail

getResource

public Resource getResource()
Description copied from interface: ConfigResource
Gets the underlying resource from which this configuration is loaded.

Specified by:
getResource in interface ConfigResource
Returns:
may be null.

getIdentifier

public String getIdentifier()
Description copied from interface: ConfigResource
Returns a string identifying this resource, for use in messages.

Specified by:
getIdentifier in interface ConfigResource
Returns:
an identifying string, or null if one is not available.

getEvaluator

public ConfigEvaluator getEvaluator(NodeReference locationIgnored)
Description copied from interface: ConfigResource
Returns the evaluator being used by this resource. The evaluator depends on the kind of resource, and possibly on the contents of the resource as well.

Specified by:
getEvaluator in interface ConfigResource
Parameters:
locationIgnored - identifies the node being configured.
Returns:
the evaluator for this resource; not null.

writeConfiguration

public void writeConfiguration(Writer out)
                        throws IOException
Description copied from interface: ConfigResource
Prints the content of this resource to a stream.

Specified by:
writeConfiguration in interface ConfigResource
Parameters:
out - the stream to get the configuration content.
Throws:
IOException - if it's thrown by out.


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