Author: limpbizkit
Date: Sat Nov 1 22:37:02 2008
New Revision: 654
Modified:
wiki/Guice2.wiki
Log:
Edited wiki page through web user interface.
Modified: wiki/Guice2.wiki
==============================================================================
--- wiki/Guice2.wiki (original)
+++ wiki/Guice2.wiki Sat Nov 1 22:37:02 2008
@@ -46,6 +46,9 @@
==Child Injectors==
[http://google-guice.googlecode.com/svn/trunk/latest-javadoc/com/google/inject/Injector.html#createChildInjector(java.lang.Iterable)
Injector.createChildInjector] allows you to create child injectors that
inherit the bindings, scopes, interceptors and converters of their parent.
This API is primarily intended for extensions and tools.
+==Even Better Error Reporting==
+Exceptions in Guice 1.0 tend to include long chains of 'caused by'
exceptions. We've tidied this up! Now a single !ProvisionException
describes concisely what Guice was doing when the problem occurred.
+
==Introspection API==
Like `java.lang.reflect`, but for Guice. It lets you rewrite a Module,
tweaking bindings programatically. It also lets you inspect a created
injector, and examine its bindings. This is intended to enable simpler,
more powerful extensions and tools for Guice.
@@ -57,12 +60,12 @@
=Changes since 1.0=
-==Exceptions==
+==Exception Types==
In Guice 1.0, when a custom provider throws an unchecked exception,
sometimes Guice wraps the exception and sometimes it doesn't. It depends on
whether the provider is being called directly (via Provider.get()) or
indirectly (such as for injecting into another type).
In Guice 2.0, any time a custom provider throws, Guice wraps it in
a !ProvisionException.
[http://publicobject.com/2008/04/future-guice-providers-that-throw.html
This rule is simpler], and it makes it easier to write fault-tolerant code
with Guice.
-!ProvisionException and !OutOfScopeException are now public.
+!ProvisionException, !ConfigurationException and !OutOfScopeException are
now public.
==Abstract Types==
Guice doesn't support injecting into abstract types. The messaging around
this has been improved since 1.0, and some code that was silently failing
now throws exceptions.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"google-guice-dev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/google-guice-dev?hl=en
-~----------~----~----~----~------~----~------~--~---