diff --git a/demos/gae-tweetstore/src/main/java/org/jclouds/demo/tweetstore/controller/AddTweetsController.java b/demos/gae-tweetstore/src/main/java/org/jclouds/demo/tweetstore/controller/AddTweetsController.java index 2bb2348b9f..d0bc80faea 100755 --- a/demos/gae-tweetstore/src/main/java/org/jclouds/demo/tweetstore/controller/AddTweetsController.java +++ b/demos/gae-tweetstore/src/main/java/org/jclouds/demo/tweetstore/controller/AddTweetsController.java @@ -1,4 +1,4 @@ -i/** +/** * * Copyright (C) 2009 Cloud Conscious, LLC. * @@ -18,8 +18,6 @@ i/** */ package org.jclouds.demo.tweetstore.controller; -import static com.google.common.base.Preconditions.checkNotNull; - import java.io.IOException; import java.util.List; import java.util.Map; @@ -31,7 +29,6 @@ import javax.annotation.Resource; import javax.inject.Inject; import javax.inject.Singleton; import javax.servlet.RequestDispatcher; -import javax.servlet.ServletContext; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; @@ -41,7 +38,6 @@ import org.jclouds.blobstore.BlobStoreContext; import org.jclouds.demo.tweetstore.domain.StoredTweetStatus; import org.jclouds.demo.tweetstore.functions.ServiceToStoredTweetStatuses; import org.jclouds.logging.Logger; -import org.springframework.web.context.ServletContextAware; import com.google.appengine.repackaged.com.google.common.collect.Lists; import com.google.common.base.Function; @@ -54,7 +50,7 @@ import com.google.common.collect.Iterables; */ @Singleton public class AddTweetsController extends HttpServlet implements - Function, List>, ServletContextAware { + Function, List> { /** The serialVersionUID */ private static final long serialVersionUID = 3888348023150822683L; @@ -64,10 +60,8 @@ public class AddTweetsController extends HttpServlet implements @Resource protected Logger logger = Logger.NULL; - private ServletContext servletContext; - @Inject - public AddTweetsController(Map> contexts, + AddTweetsController(Map> contexts, ServiceToStoredTweetStatuses blobStoreContextToContainerResult) { this.contexts = contexts; this.blobStoreContextToContainerResult = blobStoreContextToContainerResult; @@ -99,14 +93,4 @@ public class AddTweetsController extends HttpServlet implements } return statuses; } - - @Override - public void setServletContext(ServletContext context) { - this.servletContext = context; - } - - @Override - public ServletContext getServletContext() { - return checkNotNull(servletContext, "servletContext"); - } }