1 25 26 package net.killingar.forum.actions.poll; 27 28 import net.killingar.forum.internal.managers.PollManager; 29 30 import java.util.Map ; 31 32 public abstract class ActionPollsSupport extends net.killingar.forum.actions.ActionForumSupport 33 { 34 protected PollManager pollmgr; 35 36 public void setSession(Map map) 37 { 38 super.setSession(map); 39 try 40 { 41 synchronized (map) 42 { 43 pollmgr = (PollManager)manager.getManager(PollManager.class.getName()); 44 if (pollmgr == null) 45 addErrorMessage("failed to initialize poll manager, null returned"); 46 } 47 } 48 catch (Exception exception) 49 { 50 addErrorMessage("failed to initialize poll manager, exception thrown (" + exception.toString() + ")"); 51 exception.printStackTrace(); 52 } 53 } 54 } 55 | Popular Tags |