concept key in category dependency injection

appears as: key, The keys, keys, A key, key, The key
Dependency Injection: Design Patterns Using Spring and Guice

This is an excerpt from Manning's book Dependency Injection: Design Patterns Using Spring and Guice.

Notice that we pass the Service Locator a key, in this case the word “Emailer.” This tells our locator that we want an Emailer. This is significantly different from a Factory that produces only one kind of service. A Service Locator is, therefore, a Factory that can produce any kind of service.

It looks as though injector is performing the role of a Service Locator pattern and that I’ve used Emailer.class as a key that identifies emailers. As we’ve already noted, keys need not be strings, so it seems I have indeed used a Service Locator. That can’t be right, can it? Well, yes, because an injector can itself be used as a Service Locator.

Object get(String key, ObjectFactory unscoped);