Future Guice: Providers that throw unchecked exceptions
As previously mentioned, I'm cataloging Guice's changes since 1.0. Suppose you have a provider that throws an unchecked exception: class PhaseOfTheMoonProvider implements Provider<PhaseOfTheMoon> { @Inject Observatory observatory; public PhaseOfTheMoon get() { if (observatory.isNighttime()) { return observatory.getCurrentPhase(); } throw new IllegalStateException("Can't see the moon unless…