|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectconsciouscode.seedling.config.ConfigBasedNodeProvider
public class ConfigBasedNodeProvider
A NodeProvider that builds objects based on configuration in a
ConfigTree.
| Constructor Summary | |
|---|---|
ConfigBasedNodeProvider(ConfigTree configTree)
|
|
| Method Summary | |
|---|---|
void |
collectAvailableNodeNames(String branchPath,
Collection<String> names)
Builds a collection of the names of child nodes that are available for provisioning by this NodeProvider. |
NodeConfiguration |
getNodeConfiguration(NodeReference nodeRef)
Gets the configuration for a specific node. |
Object |
provisionNode(NodeLocation location)
Provisions a child of a given branch. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConfigBasedNodeProvider(ConfigTree configTree)
| Method Detail |
|---|
public Object provisionNode(NodeLocation location)
throws NodeInstantiationException
This provider acquires a NodeConfiguration from its
ConfigTree to define the node.
provisionNode in interface NodeProviderlocation - identifies where the node will be located.
null if provisioning is not
configured.
NodeInstantiationException
public void collectAvailableNodeNames(String branchPath,
Collection<String> names)
NodeProviderNodeProvider.
collectAvailableNodeNames in interface NodeProviderbranchPath - indicates the branch for which child names are
collected.names - the collection into which child names will be added by this
method. Must not be null.
public NodeConfiguration getNodeConfiguration(NodeReference nodeRef)
throws ConfigurationException
nodeRef - must not be null.
null if there is none.
ConfigurationException - if there are problems loading the
node's configuration.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||