|
Public Types |
enum | order_t {
BUILTIN = 0,
PLUGIN = 1,
SCRIPT = 2,
EXTERNAL_PROGRAM = 3,
NETWORK = 4,
MAX_ORDER = 5
} |
Static Public Member Functions |
static void | registerComponentCreator (const Y2ComponentCreator *creator, order_t order) |
static Y2Component * | createClient (const char *name) |
static Y2Component * | createServer (const char *name) |
static Y2Component * | getNamespaceComponent (const char *name) |
static bool | registerNamespaceException (const char *name_space, const char *component_name) |
Static Private Member Functions |
static Y2Component * | createComponent (const char *name, bool look_for_clients) |
static void | initializeLists () |
Static Private Attributes |
static map< const char *,
const Y2Component *, ltstr > | namespaces |
static vector< const Y2ComponentCreator * > * | creators [MAX_ORDER] = { 0, 0, 0, 0, 0 } |
static bool | stop_register = false |
static map< string, string > | namespace_exceptions |
Classes |
struct | ltstr |
The component broker is the one, that you can ask for if you need a certain component. Components are specified by names. A component name is an arbitrary string. The component broker does not statically know what kinds components exist. During global constructor call time (before main), the constructors of the ComponentCreator classes register themselves to the component broker.