@ SuppressWarnings ( "unchecked" ) private < T > ShrinkWrapResolverServiceLocator setServices ( Class < T > type , T ... services ) { CacheItem item = cache . get ( type ) ; if ( item == null ) { item = new CacheItem ( type ) ; } item . replaceInstances ( services ) ; cache . put ( type , item ) ; return this ; }
Sets the instances for a service .