|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.sourceforge.esw.graph.context.DefaultNodeContextFactory
Default 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.
This concrete implementation of the INodeContextFactory
interface delegates all requests for creation of INode instances
to the NodeFactory.
NodeFactory, Serialized Form| Constructor Summary | |
DefaultNodeContextFactory()
|
|
| Method Summary | |
INode |
getGraph()
Returns a graph of newly created INode instances. |
INode |
getSingleNode()
Returns a newly created INode instance. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultNodeContextFactory()
| Method Detail |
public INode getGraph()
INode instances.
This implementation returns a single INode instance returned
from a call to NodeFactory.createNode().
getGraph in interface INodeContextFactorypublic INode getSingleNode()
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.
This implementation returns a single INode instance returned
from a call to NodeFactory.createNode().
getSingleNode in interface INodeContextFactory
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||