Extended Binding to better support tools. Fixed bug where we were ignoring exceptions during member injection. Added TOOL stage.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@354 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/Scopes.java b/src/com/google/inject/Scopes.java
index 37d45fb..cc29a02 100644
--- a/src/com/google/inject/Scopes.java
+++ b/src/com/google/inject/Scopes.java
@@ -132,7 +132,7 @@
InjectorImpl injector, InternalFactory<? extends T> creator,
Scope scope) {
// No scope does nothing.
- if (scope == null) {
+ if (scope == null || scope == Scopes.NO_SCOPE) {
return creator;
}
Provider<T> scoped = scope.scope(key,