The Web Graph Database


Probe Framework: How to instantiate MeshObjects in a Probe

A Probe’s "work method" (parseDocument, readFromStream and readFromApi respectively for an XmlDOMProbe, a NonXmlStreamProbe and an ApiProbe) typically performs two tasks:

The StagingMeshBase passed into the method is always empty, even on subsequent runs, as the invoking Probe Framework performs all state management. Other than potentially instantiating ForwardReferences, Probes do not relate the MeshObjects they instantiate to MeshObjects representing information not found at the data source; that is the task of another NetMeshBase.

To create the appropriate MeshObjects, use the StagingMeshBase' MeshBaseLifecycleManager just like you would for any other MeshBase.

Last modified 9 years ago Last modified on 07/17/09 03:35:02