Package com.google.inject.throwingproviders
package com.google.inject.throwingproviders
Extension for injecting objects that may throw at provision time; this extension requires
guice-throwingproviders.jar
.-
ClassDescriptionAlternative to the Guice
Provider
that throws a checked Exception.A provider that invokes a method and returns its result.Creates bindings to methods annotated with @CheckedProvides
.A provider that returns a logger based on the method name.Static utility methods for creating and working with instances ofCheckedProvider
.A checked provider with dependencies, soHasDependencies
can be implemented when using theinvalid reference
SecondaryBinder#using
Annotates methods of aModule
to create aCheckedProvider
method binding that can throw exceptions.Utilities for the throwing provider module.Helper methods to verify the correctness of CheckedProvider interfaces.A version of @Inject
designed for ThrowingProviders.ThrowingProvider<T,E extends Exception> Deprecated.Builds a binding for aCheckedProvider
.Represents the returned value from a call toCheckedProvider.get()
.RuntimeException class to wrap exceptions from the checked provider.
CheckedProvider
instead.