Fixing squid:S1118 - Utility classes should not have public constructors

This commit is contained in:
Kirill Vlasov
2015-12-23 10:03:11 +05:00
parent 3d8c64d76d
commit c8a750df49
7 changed files with 21 additions and 0 deletions

View File

@ -10,6 +10,9 @@ public class ServiceLocator {
private static ServiceCache serviceCache = new ServiceCache();
private ServiceLocator() {
}
/**
* Fetch the service with the name param from the cache first, if no service is found, lookup the
* service from the {@link InitContext} and then add the newly created service into the cache map