consciouscode.seedling.config
Interface ConstructionContext

All Superinterfaces:
ConfigEvaluatorContext

public interface ConstructionContext
extends ConfigEvaluatorContext

Dynamic context for construction of new Seedling nodes by a ConfigEvaluator.

See Also:
ConfigEvaluator.constructNode(ConstructionContext)

Method Summary
 void noteInjectionOfProperty(String name)
          Signals that a particular property should be considered injected as part of construction.
 void setNodeType(Class<?> type)
          Only required if construction requires use of ConfigEvaluatorContext.evaluateProperty(String).
 Object superConstructNode()
          Asks super-configuration resources to construct the node.
 
Methods inherited from interface consciouscode.seedling.config.ConfigEvaluatorContext
evaluateProperty, getConfigResource, getLocation
 

Method Detail

superConstructNode

Object superConstructNode()
                          throws NodeProvisioningException
Asks super-configuration resources to construct the node.

Returns:
the result of the creation configuration, or null if there's no creation by super-config resources, or ConfigEvaluator.NO_VALUE if creation is explicitly disabled.
Throws:
NodeProvisioningException
See Also:
ConfigEvaluator.constructNode(ConstructionContext)

setNodeType

void setNodeType(Class<?> type)
Only required if construction requires use of ConfigEvaluatorContext.evaluateProperty(String).


noteInjectionOfProperty

void noteInjectionOfProperty(String name)
Signals that a particular property should be considered injected as part of construction.

Parameters:
name - the name of a property on the constructed node.


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