public class MBinder extends Object implements com.google.inject.Binder
| Modifier and Type | Method and Description |
|---|---|
void |
addError(com.google.inject.spi.Message message) |
void |
addError(String message,
Object... arguments) |
void |
addError(Throwable t) |
<T> com.google.inject.binder.AnnotatedBindingBuilder<T> |
bind(Class<T> type) |
<T> com.google.inject.binder.LinkedBindingBuilder<T> |
bind(com.google.inject.Key<T> key) |
<T> com.google.inject.binder.AnnotatedBindingBuilder<T> |
bind(com.google.inject.TypeLiteral<T> typeLiteral) |
<A extends Annotation> |
bindAnnotationInjector(Class<A> annotationType,
Class<? extends KeyProvider<A>> providerClass) |
com.google.inject.binder.AnnotatedConstantBindingBuilder |
bindConstant() |
void |
bindInterceptor(com.google.inject.matcher.Matcher<? super Class<?>> classMatcher,
com.google.inject.matcher.Matcher<? super Method> methodMatcher,
org.aopalliance.intercept.MethodInterceptor... interceptors) |
void |
bindListener(com.google.inject.matcher.Matcher<? super com.google.inject.Binding<?>> bindingMatcher,
com.google.inject.spi.ProvisionListener... listeners) |
void |
bindListener(com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> typeMatcher,
com.google.inject.spi.TypeListener listener) |
void |
bindScope(Class<? extends Annotation> annotationType,
com.google.inject.Scope scope) |
void |
convertToTypes(com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> typeMatcher,
com.google.inject.spi.TypeConverter converter) |
com.google.inject.Stage |
currentStage() |
void |
disableCircularProxies() |
<T> com.google.inject.MembersInjector<T> |
getMembersInjector(Class<T> type) |
<T> com.google.inject.MembersInjector<T> |
getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral) |
<T> com.google.inject.Provider<T> |
getProvider(Class<T> type) |
<T> com.google.inject.Provider<T> |
getProvider(com.google.inject.Key<T> key) |
<A extends Annotation> |
handleFieldAfterInjection(Class<A> annotationType,
Class<? extends FieldHandler<A>> providerClass) |
<A extends Annotation> |
handleMethodAfterInjection(Class<A> annotationType,
Class<? extends MethodHandler<A>> providerClass) |
void |
install(com.google.inject.Module module) |
com.google.inject.PrivateBinder |
newPrivateBinder() |
void |
requestInjection(Object instance) |
<T> void |
requestInjection(com.google.inject.TypeLiteral<T> type,
T instance) |
void |
requestStaticInjection(Class<?>... types) |
void |
requireAtInjectOnConstructors() |
void |
requireExactBindingAnnotations() |
void |
requireExplicitBindings() |
com.google.inject.Binder |
skipSources(Class... classesToSkip) |
<T> T |
willInject(T object) |
com.google.inject.Binder |
withSource(Object source) |
static MBinder |
wrap(com.google.inject.Binder binder) |
public <A extends Annotation> MBinder bindAnnotationInjector(Class<A> annotationType, Class<? extends KeyProvider<A>> providerClass)
public <A extends Annotation> MBinder handleMethodAfterInjection(Class<A> annotationType, Class<? extends MethodHandler<A>> providerClass)
public <A extends Annotation> MBinder handleFieldAfterInjection(Class<A> annotationType, Class<? extends FieldHandler<A>> providerClass)
public <T> T willInject(T object)
public static MBinder wrap(com.google.inject.Binder binder)
public void addError(com.google.inject.spi.Message message)
addError in interface com.google.inject.Binderpublic void addError(String message, Object... arguments)
addError in interface com.google.inject.Binderpublic void addError(Throwable t)
addError in interface com.google.inject.Binderpublic <T> com.google.inject.binder.LinkedBindingBuilder<T> bind(com.google.inject.Key<T> key)
bind in interface com.google.inject.Binderpublic <T> com.google.inject.binder.AnnotatedBindingBuilder<T> bind(Class<T> type)
bind in interface com.google.inject.Binderpublic <T> com.google.inject.binder.AnnotatedBindingBuilder<T> bind(com.google.inject.TypeLiteral<T> typeLiteral)
bind in interface com.google.inject.Binderpublic com.google.inject.binder.AnnotatedConstantBindingBuilder bindConstant()
bindConstant in interface com.google.inject.Binderpublic void bindInterceptor(com.google.inject.matcher.Matcher<? super Class<?>> classMatcher, com.google.inject.matcher.Matcher<? super Method> methodMatcher, org.aopalliance.intercept.MethodInterceptor... interceptors)
bindInterceptor in interface com.google.inject.Binderpublic void bindListener(com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> typeMatcher,
com.google.inject.spi.TypeListener listener)
bindListener in interface com.google.inject.Binderpublic void bindScope(Class<? extends Annotation> annotationType, com.google.inject.Scope scope)
bindScope in interface com.google.inject.Binderpublic void convertToTypes(com.google.inject.matcher.Matcher<? super com.google.inject.TypeLiteral<?>> typeMatcher,
com.google.inject.spi.TypeConverter converter)
convertToTypes in interface com.google.inject.Binderpublic com.google.inject.Stage currentStage()
currentStage in interface com.google.inject.Binderpublic void disableCircularProxies()
disableCircularProxies in interface com.google.inject.Binderpublic <T> com.google.inject.MembersInjector<T> getMembersInjector(Class<T> type)
getMembersInjector in interface com.google.inject.Binderpublic <T> com.google.inject.MembersInjector<T> getMembersInjector(com.google.inject.TypeLiteral<T> typeLiteral)
getMembersInjector in interface com.google.inject.Binderpublic <T> com.google.inject.Provider<T> getProvider(com.google.inject.Key<T> key)
getProvider in interface com.google.inject.Binderpublic <T> com.google.inject.Provider<T> getProvider(Class<T> type)
getProvider in interface com.google.inject.Binderpublic void install(com.google.inject.Module module)
install in interface com.google.inject.Binderpublic com.google.inject.PrivateBinder newPrivateBinder()
newPrivateBinder in interface com.google.inject.Binderpublic void requestInjection(Object instance)
requestInjection in interface com.google.inject.Binderpublic <T> void requestInjection(com.google.inject.TypeLiteral<T> type,
T instance)
requestInjection in interface com.google.inject.Binderpublic void requestStaticInjection(Class<?>... types)
requestStaticInjection in interface com.google.inject.Binderpublic void requireExplicitBindings()
requireExplicitBindings in interface com.google.inject.Binderpublic com.google.inject.Binder skipSources(Class... classesToSkip)
skipSources in interface com.google.inject.Binderpublic com.google.inject.Binder withSource(Object source)
withSource in interface com.google.inject.Binderpublic void bindListener(com.google.inject.matcher.Matcher<? super com.google.inject.Binding<?>> bindingMatcher,
com.google.inject.spi.ProvisionListener... listeners)
bindListener in interface com.google.inject.Binderpublic void requireAtInjectOnConstructors()
requireAtInjectOnConstructors in interface com.google.inject.Binderpublic void requireExactBindingAnnotations()
requireExactBindingAnnotations in interface com.google.inject.BinderCopyright © 2010–2015 Mycila. All rights reserved.