1 25 26 29 package net.killingar.forum.actions.task; 30 31 import net.killingar.forum.actions.ActionForumSupport; 32 import net.killingar.forum.internal.managers.TaskManager; 33 34 import java.util.Map ; 35 36 public class ActionTaskSupport extends ActionForumSupport 37 { 38 protected TaskManager taskMgr; 40 41 43 45 47 49 public void setSession(Map map) 51 { 52 super.setSession(map); 53 try 54 { 55 synchronized (map) 56 { 57 taskMgr = (TaskManager)manager.getManager(TaskManager.class.getName()); 58 if (taskMgr == null) 59 addErrorMessage("failed to initialize task manager, null returned"); 60 } 61 } 62 catch (Exception exception) 63 { 64 addErrorMessage("failed to initialize task manager, exception thrown (" + exception.toString() + ")"); 65 exception.printStackTrace(); 66 } 67 } 68 } 69 | Popular Tags |