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.
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