Whole document tree
bonobo-contextSynopsis
DescriptionThe bonobo-context code is designed to provide a way to expose CORBA contexts through a single C interface. This is so that language bindings can get away with wrapping a single function, and yet have access to the whole Bonobo service framework. Two examples of this are the MonikerContext and the RunningContext ( see Bonobo_Context.idl ).
Example 1. Getting and using the moniker context
The list of contexts is open and may be expanded in the future, currently there are the following:
The running context is particularly useful for ensuring that server processes exit cleanly when all their objects and derived objects are dead. To do this we can simply do the following:
Example 2. How to get a factory to quit when it is idle
Since this is a commonly used thing there is a helper to make this easier: Detailsbonobo_context_init ()
Sets up the context system, internal use only, called by bonobo_init. bonobo_context_shutdown ()
Shuts down the context system, internal use only bonobo_context_add ()
This function adds a new context to the context system bonobo_context_get ()
The most useful context is named 'Activation' and returns the IDL:Bonobo/ActivationContext:1.0 interface. bonobo_running_context_auto_exit_unref ()
|