Add a new service implementation to the registry. Only one service may be bound to a given definition.
When a new service is added, any listeners will be notified.
an error if another service is already bound to the same definition.
the service definition
the service implementation
Add a listener, to be notified whenever a new service implementation is added.
When a listener is added, it will immediately be called with all existing services in the registry.
Listeners are used to add services to the ServiceAdapter
the registry listener
Add a new service implementation to the registry. Only one service may be bound to a given definition.
When a new service is added, any listeners will be notified.
an error if another service is already bound to the same definition.