Package com.google.inject.throwingproviders
Extension for injecting objects that may throw at provision time; this extension requires
guice-throwingproviders.jar.-
Interface Summary Interface Description CheckedProvider<T> Alternative to the GuiceProviderthat throws a checked Exception.CheckedProviderWithDependencies<T> A checked provider with dependencies, soHasDependenciescan be implemented when using theSecondaryBinder#usingmethods.ThrowingProvider<T,E extends java.lang.Exception> Deprecated. useCheckedProviderinstead. -
Class Summary Class Description CheckedProviderMethod<T> A provider that invokes a method and returns its result.CheckedProviderMethodsModule Creates bindings to methods annotated with @CheckedProvides.CheckedProviderMethodsModule.LogProvider A provider that returns a logger based on the method name.CheckedProviders Static utility methods for creating and working with instances ofCheckedProvider.CheckedProviders.CheckedProviderInvocationHandler<T> CheckedProviders.ReturningHandler<T> CheckedProviders.ThrowingHandler CheckedProvideUtils Utilities for the throwing provider module.ProviderChecker Helper methods to verify the correctness of CheckedProvider interfaces.ProviderChecker.NotSyntheticOrBridgePredicate ThrowingProviderBinder Builds a binding for aCheckedProvider.ThrowingProviderBinder.Result Represents the returned value from a call toCheckedProvider.get(). -
Exception Summary Exception Description ThrowingProviderBinder.ResultException RuntimeException class to wrap exceptions from the checked provider. -
Annotation Types Summary Annotation Type Description CheckedProvides Annotates methods of aModuleto create aCheckedProvidermethod binding that can throw exceptions.ThrowingInject A version of @Injectdesigned for ThrowingProviders.