|
Gaudi Framework, version v23r5 |
| Home | Generated: Wed Nov 28 2012 |
A dual-stage boostrap mechanism is used to ensure an orderly startup of the ApplicationMgr. More...


Public Member Functions | |
| BootSvcLocator () | |
| virtual | ~BootSvcLocator () |
| virtual StatusCode | getService (const Gaudi::Utils::TypeNameString &typeName, const InterfaceID &iid, IInterface *&pinterface) |
| Get a specific interface pointer given a service name and interface id. | |
| virtual StatusCode | getService (const Gaudi::Utils::TypeNameString &typeName, IService *&svc, const bool createIf=true) |
| Get a reference to the service given a service name. | |
| virtual const std::list < IService * > & | getServices () const |
| Get a reference to a service and create it if it does not exists. | |
| virtual bool | existsService (const std::string &name) const |
| Check the existence of a service given a service name. | |
| virtual SmartIF< IService > & | service (const Gaudi::Utils::TypeNameString &typeName, const bool createIf=true) |
| Returns a smart pointer to a service. | |
Additional Inherited Members | |
Public Types inherited from implements1< ISvcLocator > | |
| typedef implements1 | base_class |
| Typedef to this class. | |
| typedef extend_interfaces1 < ISvcLocator > | extend_interfaces_base |
| Typedef to the base of this class. | |
| typedef extend_interfaces_base::ext_iids | interfaces |
| MPL set of all the implemented interfaces. | |
Static Public Member Functions inherited from IInterface | |
| static const InterfaceID & | interfaceID () |
| Return an instance of InterfaceID identifying the interface. | |
A dual-stage boostrap mechanism is used to ensure an orderly startup of the ApplicationMgr.
If this function is called before the singleton ApplicationMgr instance exists, a BootstrapAppMgr singleton instance is created. This responds to any subsequent requests for services by returning StatusCode::FAILURE, unless the ApplicationMgr singleton instance has been created in the interim. In this case, the BootstrapAppMgr forwards the request to the ApplicationMgr instance. The motiviation for this is to handle static object instances where the constructor attempts to locate services and would otherwise instantiate the ApplicationMgr instance in an unorderly manner. This logic requires that the ApplicationMgr instance is created explicitly.
Definition at line 37 of file Bootstrap.cpp.
| BootSvcLocator::BootSvcLocator | ( | ) |
Definition at line 237 of file Bootstrap.cpp.
|
virtual |
Definition at line 239 of file Bootstrap.cpp.
|
virtual |
Check the existence of a service given a service name.
Implements ISvcLocator.
Definition at line 275 of file Bootstrap.cpp.
|
virtual |
Get a specific interface pointer given a service name and interface id.
| name | Service name |
| iid | Interface ID |
| pinterface | Returned pointer to the requested interface |
Reimplemented from ISvcLocator.
Definition at line 243 of file Bootstrap.cpp.
|
virtual |
Get a reference to the service given a service name.
| name | Service name |
| svc | Returned service pointer |
Reimplemented from ISvcLocator.
Definition at line 254 of file Bootstrap.cpp.
Get a reference to a service and create it if it does not exists.
| name | Service name |
| svc | Returned service pointer |
| createIf | flag to control the creationReturn the list of Services |
Implements ISvcLocator.
Definition at line 267 of file Bootstrap.cpp.
|
virtual |
Returns a smart pointer to a service.
Implements ISvcLocator.
Definition at line 284 of file Bootstrap.cpp.