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:
- It parses the input information. Based on that input information:
- It creates MeshObjects in the passed-in StagingMeshBase and assembles them into a MeshObjectGraph representing the parsed information.
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.
![[Logo]](/trac/chrome/site/projectlogo.png)