import "IServiceManager.idl";
Inheritance diagram for upf::IServiceManager:
Service is simply a named object. It is registered into service manager under a name (similar to Unix filename) and can later be obtained (resolved) by anybody else.
This is the simplest way to implement singletons in UPF.
Public Methods | |
boolean | rebind (in string name, in IObject obj) |
Replaces the object providing service name with obj. | |
boolean | unbind (in string name) |
Removes service name (i.e. | |
IObject | resolve (in string name) |
Returns object that was binded to service name. | |
void | addListener (in string name, in IServiceChangeListener listener) |
Add a listener that is notified when the object that provides service named name changes to another object (i.e. |
|
Add a listener that is notified when the object that provides service named name changes to another object (i.e. bind or rebind was called) or when the service is removed (unbind was called).
|
|
Replaces the object providing service name with obj. The service must be binded with rebind permissions, otherwise rebind fails and returns false.
|
|
Returns object that was binded to service name. Returns NULL if there is no such service. |
|
Removes service name (i.e. it won't be possible to resolve it afterwards). The service must be binded with unbind permissions, otherwise unbind fails and returns false.
|