The node factory and the parser factory assume roles in declaring a node to the broker or defining a parser.
Each loadable implementation library (LIL) has one node factory, or one parser factory, or has both. A node factory can identify many nodes, and a parser factory can identify many parsers.
When the broker loads the LIL, it calls the following functions:
After the operating system has loaded and initialized the LIL, the broker calls initialization function bipGetMessageflowNodeFactory. The bipGetMessageflowNodeFactory function calls the utility function cniCreateNodeFactory, which passes back a factory name (or group name) for all the nodes that your LIL supports.
After the operating system has loaded and initialized the LIL, the broker calls initialization function bipgetparserfactory. The bipgetparserfactory function defines the name of the factory that the user-defined parser supports, and the classes of objects, or shared object, that the factory supports. The initialization function bipgetparserfactory calls the utility function cpiCreateParserFactory, which passes back a factory name (or group name) for all the parsers that your LIL supports.
Before the node factory is returned, the broker calls the following functions:
This function creates a single instance of the node factory in the broker.
This function defines the name of a node class that a node factory supports, and identifies the nodes that the node factory can create.
Before the parser factory is returned, the broker calls the following functions:
This function creates a single instance of the named parser factory in the message broker.
This function defines the name of a parser class that a parser factory supports, and identifies the parsers that the factory can create.