Author: lindner
Date: Mon Sep 15 14:57:27 2008
New Revision: 695652
URL: http://svn.apache.org/viewvc?rev=695652&view=rev
Log:
This class wasn't picking up the Guice defined HttpFetcher, also HttpFetcher is
a singleton so don't create new instances
Modified:
incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/RemoteContentFetcherFactory.java
Modified:
incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/RemoteContentFetcherFactory.java
URL:
http://svn.apache.org/viewvc/incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/RemoteContentFetcherFactory.java?rev=695652&r1=695651&r2=695652&view=diff
==============================================================================
---
incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/RemoteContentFetcherFactory.java
(original)
+++
incubator/shindig/trunk/java/gadgets/src/main/java/org/apache/shindig/gadgets/http/RemoteContentFetcherFactory.java
Mon Sep 15 14:57:27 2008
@@ -27,15 +27,15 @@
*/
public class RemoteContentFetcherFactory implements Provider<HttpFetcher> {
- private HttpCache cache;
+ private HttpFetcher fetcher;
@Inject
- public RemoteContentFetcherFactory(HttpCache cache) {
- this.cache = cache;
+ public RemoteContentFetcherFactory(HttpFetcher fetcher) {
+ this.fetcher = fetcher;
}
public HttpFetcher get() {
- return new BasicHttpFetcher(cache);
+ return fetcher;
}
}