To a create a TreeNode object to represent a component in the monitorable object tree, invoke the static method createTreeNode of the org.glassfish.flashlight.datatree.factory.TreeNodeFactory class. Invoke this method in the class that represents your component.
In the invocation of the createTreeNode method, pass the following information as parameters to the method:
A string that contains the name of the node
An instance of the class that represents the component
A string that describes the category of the component