Guest User

Untitled

a guest
Jul 16th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package jerseyandguice;
  2.  
  3. import javax.servlet.http.HttpServlet;
  4. import javax.ws.rs.Path;
  5.  
  6. import com.google.inject.Inject;
  7. import com.google.inject.Singleton;
  8.  
  9. @Path("/jg")
  10. @Singleton
  11. public class BogoServlet extends HttpServlet {
  12.  
  13. private static final long serialVersionUID = 1L;
  14.  
  15. private Dependancy dependancy;
  16.  
  17. @Inject
  18. public BogoServlet(Dependancy dep) {
  19. dependancy = dep;
  20. }
  21.  
  22. public Dependancy getDependancy() {
  23. return dependancy;
  24. }
  25. }
Add Comment
Please, Sign In to add comment