com.khubla.pragmatach.framework.controller
Class SessionScopedControllers

java.lang.Object
  extended by com.khubla.pragmatach.framework.controller.SessionScopedControllers

public class SessionScopedControllers
extends Object

Author:
tome

Constructor Summary
SessionScopedControllers()
           
 
Method Summary
static PragmatachController getController(javax.servlet.http.HttpSession httpSession, Class<?> clazz)
          get controller with clazz
static Hashtable<Class<?>,PragmatachController> getMap(javax.servlet.http.HttpSession httpSession)
          get the map
static void populateSessionControllers(javax.servlet.http.HttpSession httpSession)
          create instances of all session controllers and make sure they're in the map
static void setController(javax.servlet.http.HttpSession httpSession, PragmatachController pragmatachController)
          set controller
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SessionScopedControllers

public SessionScopedControllers()
Method Detail

getController

public static PragmatachController getController(javax.servlet.http.HttpSession httpSession,
                                                 Class<?> clazz)
get controller with clazz


getMap

public static Hashtable<Class<?>,PragmatachController> getMap(javax.servlet.http.HttpSession httpSession)
get the map


populateSessionControllers

public static void populateSessionControllers(javax.servlet.http.HttpSession httpSession)
                                       throws PragmatachException
create instances of all session controllers and make sure they're in the map

Throws:
PragmatachException

setController

public static void setController(javax.servlet.http.HttpSession httpSession,
                                 PragmatachController pragmatachController)
set controller



Copyright © 2014 khubla.com. All rights reserved.