put
Registers a service in the ServiceLocator for the specified key.
By default, it is an error to register a key more than once in the same ServiceLocator. This behavior can be changed by setting allowReregister to true in the constructor, in which case subsequent registrations will overwrite previous ones.
Parameters
key
The ServiceKey to associate associate with the provided params.
params
The parameters used to create a new ServiceEntry for key.