1 16 package org.directwebremoting.guice; 17 18 import com.google.inject.Key; 19 20 import java.util.Collection ; 21 22 27 public interface ContextRegistry<C, R> 28 { 29 32 R registryFor(C context); 33 34 35 40 <T> InstanceProvider<T> get(R registry, Key<T> key, String keyString); 41 42 43 48 <T> InstanceProvider<T> putIfAbsent(R registry, Key<T> key, String keyString, 49 InstanceProvider<T> creator); 50 51 52 58 <T> boolean remove(R registry, Key<T> key, String keyString, 59 InstanceProvider<T> creator); 60 } 61 | Popular Tags |