Oberon || Library || Module Index || Search Engine || Definition || Module


Ulm's Oberon Library:
NodeFactories


NAME

NodeFactories - persistent objects that construct Names.Node objects

SYNOPSIS

TYPE Factory = POINTER TO FactoryRec;
TYPE FactoryRec = RECORD (PersistentDisciplines.ObjectRec) END;


TYPE ConstructNodeProc = PROCEDURE (factory: Factory; VAR node: Names.Node) : BOOLEAN; TYPE Interface = POINTER TO InterfaceRec; TYPE InterfaceRec = RECORD (Objects.ObjectRec) constructNode: ConstructNodeProc; END;

PROCEDURE Init(factory: Factory; if: Interface); PROCEDURE ConstructNode(factory: Factory; VAR node: Names.Node) : BOOLEAN;

DESCRIPTION

NodeFactories is an interface for persistent factory objects that allow to construct objects of type Names.Node. Factories allow to separate the decision what kind of extension of Names.Node is to be created with which parameters from the actual creation. In the context of Names and name services, factories allow to re-create regular nodes and links to other name services after a reboot of the name service.

SEE ALSO

Names
abstraction for name hierarchies

Edited by: borchert, last change: 2005/08/29, revision: 1.1, converted to HTML: 2005/08/29

Oberon || Library || Module Index || Search Engine || Definition || Module