Guice missing annotations
I am using Guice 3.0 to build the dependency tree. I have been searching
the manual how to register types which may throw exceptions. I found this
link http://code.google.com/p/google-guice/wiki/ThrowingProviders which
deals exactly with this topic. The problem is, I am not able to use any of
the types described on the page. I tried the interfaces
ThrowingProvider<T,E>, CheckedProvider<T> and annotation @CheckedProvides.
For all of the types listed above I get the "cannot find symbol"
compilation error. The manual specifies that some of the types were added
in Guice 2.0 and others in version 3.0. As I specified at the top I am
using Guice 3.0. Does anybody has any idea what am I missing or maybe
encountered same problems? Any suggestions will be appreciated.
Uros
No comments:
Post a Comment