private <T> ShrinkWrapResolverServiceLocator addService(Class<T> type, Class<? extends T> implementationType) { CacheItem item = cache.get(type); if (item == null) { item = new CacheItem(type); } item.addImplementation(implementationType); cache.put(type, item); return this; }
private <T> ShrinkWrapResolverServiceLocator addService(Class<T> type, Class<? extends T> implementationType) { CacheItem item = cache.get(type); if (item == null) { item = new CacheItem(type); } item.addImplementation(implementationType); cache.put(type, item); return this; }