Added Methods |
void bindListener(Matcher<Binding<?>>, ProvisionListener[])
|
Registers listeners for provisioned objects. |
void bindListener(Matcher<TypeLiteral<?>>, TypeListener)
|
Registers a listener for injectable types. |
Provider<T> getProvider(Dependency<T> )
|
Returns the provider used to obtain instances for the given injection key. |
Provider<T> getProvider(Class<T> )
|
Returns the provider used to obtain instances for the given injection type. |
void requireAtInjectOnConstructors()
|
Requires that a {@literal @}Inject annotation exists on a constructor in order for
Guice to consider it an eligible injectable class. |
void requireExactBindingAnnotations()
|
Requires that Guice finds an exactly matching binding annotation. |
void scanModulesForAnnotatedMethods(ModuleAnnotatedMethodScanner )
|
Adds a scanner that will look in all installed modules for annotations the scanner can parse,
and binds them like {@literal @}Provides methods. |
Changed Methods |
AnnotatedConstantBindingBuilder bindConstant()
|
Changed from non-abstract to abstract.
|
See the EDSL examples at Binder. |
void bindInterceptor(Matcher<Class<?>>, Matcher<Method>, MethodInterceptor[])
|
Documentation changed from old to new. Changed from non-abstract to abstract.
|
Binds method interceptor[s] to methods matched by class and method matchers. |
void bindScope(Class<Annotation>, Scope)
|
Changed from non-abstract to abstract.
|
Binds a scope to an annotation. |
void convertToTypes(Matcher<TypeLiteral<?>>, TypeConverter)
|
Changed from non-abstract to abstract.
|
Binds a type converter. |
Stage currentStage()
|
Changed from non-abstract to abstract.
|
Gets the current stage. |
void disableCircularProxies()
|
Changed from non-abstract to abstract.
|
Prevents Guice from constructing a Proxy when a circular dependency
is found. |
void install(Module )
|
Changed from non-abstract to abstract.
|
Uses the given module to configure more bindings. |
PrivateBinder newPrivateBinder()
|
Changed from non-abstract to abstract.
|
Creates a new private child environment for bindings and other configuration. |
void requestStaticInjection(Class[] )
|
Changed from non-abstract to abstract.
|
Upon successful creation, the Injector will inject static fields
and methods in the given classes. |
void requireExplicitBindings()
|
Documentation changed from old to new. Changed from non-abstract to abstract.
|
Instructs the Injector that bindings must be listed in a Module in order to
be injected. |
Binder skipSources(Class[] )
|
Changed from non-abstract to abstract.
|
Returns a binder that skips {@code classesToSkip} when identify the
calling code. |
Binder withSource(Object )
|
Changed from non-abstract to abstract.
|
Returns a binder that uses {@code source} as the reference location for
configuration errors. |
void addError(Message )
|
Changed from non-abstract to abstract.
|
Records an error message to be presented to the user at a later time. |
void addError(String, Object[])
|
Changed from non-abstract to abstract.
|
Records an error message which will be presented to the user at a later
time. |
void addError(Throwable )
|
Changed from non-abstract to abstract.
|
Records an exception, the full details of which will be logged, and the
message of which will be presented to the user at a later
time. |
AnnotatedBindingBuilder<T> bind(TypeLiteral<T> )
|
Changed from non-abstract to abstract.
|
See the EDSL examples at Binder. |
AnnotatedBindingBuilder<T> bind(Class<T> )
|
Changed from non-abstract to abstract.
|
See the EDSL examples at Binder. |
LinkedBindingBuilder<T> bind(Key<T> )
|
Changed from non-abstract to abstract.
|
See the EDSL examples at Binder. |
MembersInjector<T> getMembersInjector(TypeLiteral<T> )
|
Changed from non-abstract to abstract.
|
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type {@code T}. |
MembersInjector<T> getMembersInjector(Class<T> )
|
Changed from non-abstract to abstract.
|
Returns the members injector used to inject dependencies into methods and fields on instances
of the given type {@code T}. |
Provider<T> getProvider(Key<T> )
|
Changed from non-abstract to abstract.
|
Returns the provider used to obtain instances for the given injection key. |
void requestInjection(TypeLiteral<T>, T)
|
Changed from non-abstract to abstract.
|
Upon successful creation, the Injector will inject instance fields
and methods of the given object. |
void requestInjection(Object )
|
Changed from non-abstract to abstract.
|
Upon successful creation, the Injector will inject instance fields
and methods of the given object. |