WEB4J Development Tools 4.10.0.0

hirondelle.web4jtools.metrics.base
Class BaseInfoDAO

Object
  extended by hirondelle.web4jtools.metrics.base.BaseInfoDAO

public final class BaseInfoDAO
extends Object

Save and fetch the current BaseInfo.

This implementation does not store items in a database. Rather, the following mechanism is used :


Field Summary
static String BASE_INFO_KEY
          Key under which BaseInfo objects are stored (in both application and session scopes.)
 
Constructor Summary
BaseInfoDAO(HttpServletRequest aRequest)
          Full constructor
 
Method Summary
 BaseInfo fetch()
          Fetch a BaseInfo from either session scope (preferred) or application scope (default).
static void readConfig(ServletConfig aConfig)
          Read in config from web.xml.
 void save(BaseInfo aDirInfo)
          Save an 'override' BaseInfo into session scope.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_INFO_KEY

public static final String BASE_INFO_KEY
Key under which BaseInfo objects are stored (in both application and session scopes.)

See Also:
Constant Field Values
Constructor Detail

BaseInfoDAO

public BaseInfoDAO(HttpServletRequest aRequest)
Full constructor

Method Detail

readConfig

public static void readConfig(ServletConfig aConfig)
Read in config from web.xml. Called only upon startup. Place a default BaseInfo object in application scope.


fetch

public BaseInfo fetch()
Fetch a BaseInfo from either session scope (preferred) or application scope (default).


save

public void save(BaseInfo aDirInfo)
Save an 'override' BaseInfo into session scope.


WEB4J Development Tools 4.10.0.0

Copyright Hirondelle Systems - Generated 2013Oct19.12.26