|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
It's a factory for Nodes abstraction. It pretends build Nodes of any
class using the factory method pattern design.
Any future implementation must contain the no argument constructor.
Node
Method Summary | |
Node |
buildNode()
Builds a Node using the default IdFactory and the default Class for him. |
Node |
buildNode(Id id)
Builds a Node using the Id that appears in parameter, using the default Class for him. |
NodeFactory |
setValues(IdFactory idFactory,
java.lang.Class nodeClass)
Sets the initial values for this NodeFactory. |
Method Detail |
public NodeFactory setValues(IdFactory idFactory, java.lang.Class nodeClass) throws InitializationException
idFactory
- IdFactory to use to build all required Ids.nodeClass
- Class reference of the current Node implementation.
InitializationException
- if some error occurs during the
initialization process.public Node buildNode() throws InitializationException
InitializationException
public Node buildNode(Id id) throws InitializationException
id
-
InitializationException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |