net.sourceforge.esw.graph.context
Interface INodeContextFactory

All Superinterfaces:
java.io.Serializable
All Known Subinterfaces:
IPrototypeNodeContextFactory
All Known Implementing Classes:
DefaultNodeContextFactory

public interface INodeContextFactory
extends java.io.Serializable

Provides context for creation of a single INode instance, or a graph of INode instances.

INodeContextFactory implementors can use this factory to control creational behavior and patterns for INode instances. It allows the program to specifiy the semantics used when creating a graph of INode instances, or a single INode instance. It allows a one-step indirection for INode creation beyond the NodeFactory.

See Also:
NodeFactory

Method Summary
 INode getGraph()
          Returns a graph of newly created INode instances.
 INode getSingleNode()
          Returns a newly created INode instance.
 

Method Detail

getGraph

public INode getGraph()
Returns a graph of newly created INode instances.

getSingleNode

public INode getSingleNode()
Returns a newly created INode instance.

Implementors can use this method to allow single INode instances to be added to a graph that follow the semantics of the INode instances created via the getGraph method.



Copyright 2002 Free Software Foundation. All Rights Reserved.