Renaming ExternalContext to InjectionPoint, and changing how it's used in ProvisionException. Also changing LoggerProvider to LoggerFactory.
git-svn-id: https://google-guice.googlecode.com/svn/trunk@378 d779f126-a31b-0410-b53b-1d3aecad763e
diff --git a/src/com/google/inject/BoundProviderFactory.java b/src/com/google/inject/BoundProviderFactory.java
index 8cb9a4c..f0708e0 100644
--- a/src/com/google/inject/BoundProviderFactory.java
+++ b/src/com/google/inject/BoundProviderFactory.java
@@ -56,15 +56,14 @@
return providerKey.toString();
}
- public T get(InternalContext context) {
- Provider<? extends T> provider = providerFactory.get(context);
+ public T get(InternalContext context, InjectionPoint<?> injectionPoint) {
+ Provider<? extends T> provider = providerFactory.get(context, injectionPoint);
try {
- return context.checkForNull(provider.get(), source);
+ return injectionPoint.checkForNull(provider.get(), source);
} catch(ProvisionException e) {
throw e;
} catch(RuntimeException e) {
- throw new ProvisionException(context.getExternalContextStack(),
- e, ErrorMessages.ERROR_IN_PROVIDER);
+ throw new ProvisionException(e, ErrorMessages.ERROR_IN_PROVIDER);
}
}
}