1 package org.itracker.web.util;
2
3 import org.itracker.services.ITrackerServices;
4
5 /**
6 *
7 * This class gets access to ITracker services layer from a servlet context
8 * Since actions already have it done in the top level ITrackerAction (ItrackerBaseAction), this is mostly
9 * to be used in JSPs.
10 *
11 * Marky: And that means that this is somehow deprecated because we
12 * want to move all logic code except Taglibs from the JSPs to the Actions.
13 *
14 * TODO In fact this shouldn't be needed / used, ITracker's JSP have way too much java code
15 *
16 * @author ricardo
17 *
18 */
19 public class ServletContextUtils {
20
21 private static ITrackerServices itrackerServices;
22
23 public static void setITrackerServices(ITrackerServices services) {
24 itrackerServices = services;
25 }
26
27 public static ITrackerServices getItrackerServices() {
28 return itrackerServices;
29 }
30
31 }
32