Lines Matching defs:cls
32 public <T> void allowPluginDependency(Class<T> cls) {
33 allowPluginDependency(cls, Dependency.get(cls));
36 public <T> void allowPluginDependency(Class<T> cls, T obj) {
38 mDependencies.put(cls, obj);
43 <T> T get(Plugin p, Class<T> cls) {
44 if (!mManager.dependsOn(p, cls)) {
45 throw new IllegalArgumentException(p.getClass() + " does not depend on " + cls);
48 if (!mDependencies.containsKey(cls)) {
49 throw new IllegalArgumentException("Unknown dependency " + cls);
51 return (T) mDependencies.get(cls);