8557c775d526e603fa6f2de0fa4f3d840459083e |
|
01-Mar-2012 |
Sam Berlin <sameb@google.com> |
Add a new method to ThrowingProviderBinder: providing(Class) or providing(TypeLiteral). This instructs ThrowingProviderBinder to create a proxy implementation of the CheckedProvider interface and delegate it to the constructor of the class in question. As a bonus, the class it constructs fully participates in Guice AOP. This is a binary-safe change, but a compile-unsafe change if classes directly kept a reference to SecondaryBinder. SecondaryBinder now has two generic types (as opposed to one). Revision created by MOE tool push_codebase. MOE_MIGRATION=4307
/external/guice/extensions/throwingproviders/src/com/google/inject/throwingproviders/CheckedProvideUtils.java
|