1 16 17 package com.google.inject; 18 19 import com.google.inject.binder.AnnotatedBindingBuilder; 20 import com.google.inject.binder.ConstantBindingBuilder; 21 import com.google.inject.binder.LinkedBindingBuilder; 22 import com.google.inject.binder.AnnotatedConstantBindingBuilder; 23 import com.google.inject.matcher.Matcher; 24 import java.lang.annotation.Annotation ; 25 import java.lang.reflect.Method ; 26 import org.aopalliance.intercept.MethodInterceptor; 27 28 61 public interface Binder { 62 63 73 void bindInterceptor(Matcher<? super Class <?>> classMatcher, 74 Matcher<? super Method > methodMatcher, MethodInterceptor... interceptors); 75 76 79 void bindScope(Class <? extends Annotation > annotationType, Scope scope); 80 81 84 <T> LinkedBindingBuilder<T> bind(Key<T> key); 85 86 89 <T> AnnotatedBindingBuilder<T> bind(TypeLiteral<T> typeLiteral); 90 91 94 <T> AnnotatedBindingBuilder<T> bind(Class <T> type); 95 96 99 AnnotatedConstantBindingBuilder bindConstant(); 100 101 107 void requestStaticInjection(Class <?>... types); 108 109 112 void install(Module module); 113 114 117 Stage currentStage(); 118 119 126 void addError(String message, Object ... arguments); 127 128 134 void addError(Throwable t); 135 } 136 | Popular Tags |