The service locator pattern is a relatively old pattern that was very popular with Java EE. … The goal of this pattern is to improve the modularity of your application by removing the dependency between the client and the implementation of an interface.