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