ca.cbc.sportwire.servlet.data
Class TemplateLineup

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--ca.cbc.sportwire.util.PeriodicData
              |
              +--ca.cbc.sportwire.servlet.data.Lineup
                    |
                    +--ca.cbc.sportwire.servlet.data.TemplateLineup
All Implemented Interfaces:
GlobalCacheProperties, LineupBean, java.lang.Runnable, SportPageProperties, Stoppable

public class TemplateLineup
extends Lineup

TemplateLineup: Velocity interface to Brian Gordon's cbc.template.presentation.Lineup object -- non CBC sites will probably want to delete this class.

Created: Thu Dec 20 10:55:28 2001
 $Log: TemplateLineup.java,v $
 Revision 1.6  2002/03/15 16:46:40  garym
 bug fixes

 Revision 1.5  2002/01/29 21:08:00  garym
 beans now loaded after topic context is built

 Revision 1.4  2002/01/26 06:46:29  garym
 authorization bug in lineups

 Revision 1.3  2002/01/24 19:50:20  garym
 Major restructuring of beans and pagehandlers

 Revision 1.2  2002/01/14 21:51:46  garym
 bug fixes in topics and config files migration to Extended Properties

 Revision 1.1  2002/01/03 03:41:59  garym
 Added interface to Brian's TemplateLineup objects


 

Version:
$Id: TemplateLineup.java,v 1.6 2002/03/15 16:46:40 garym Exp $
Author:
Gary Lawrence Murphy

Field Summary
private static java.util.Map _lineups
           
(package private) static org.apache.log4j.Category cat
           
private  cbc.template.presentation.Lineup db
           
 
Fields inherited from class ca.cbc.sportwire.servlet.data.Lineup
topic
 
Fields inherited from class ca.cbc.sportwire.util.PeriodicData
interval, running
 
Fields inherited from class java.lang.Thread
contextClassLoader, daemon, eetop, group, inheritableThreadLocals, inheritedAccessControlContext, MAX_PRIORITY, MIN_PRIORITY, name, NORM_PRIORITY, priority, single_step, stillborn, stopThreadPermission, target, threadInitNumber, threadLocals, threadQ, userDaemon
 
Fields inherited from interface ca.cbc.sportwire.servlet.data.LineupBean
DEFAULT_CATEGORY, DEFAULT_REFRESH, LINEUP_CATEGORY_VAR, LINEUP_CLASS_PROPERTY, LINEUP_REFRESH_PROPERTY, LINEUP_SCRIPT_PROPERTY, LINEUP_VAR
 
Fields inherited from interface ca.cbc.sportwire.servlet.data.GlobalCacheProperties
CACHE_DEFAULT_PERIOD, CACHE_DEFAULT_TIMEOUT, CACHE_PERIOD, CACHE_TIMEOUT, MRU_PROPERTY, MRU_VAR, TTL_PROPERTY, TTL_VAR
 
Fields inherited from interface ca.cbc.sportwire.servlet.data.SportPageProperties
BEAN_SUFFIX, BEANFACTORY_VAR, CONTEXT_VAR, DATE_VAR, DEFAULT_EXTS, DEFAULT_INDEXES, DEFAULT_PAGE_SUFFIX, DEFAULT_SAX_DRIVER_CLASS, DEFAULT_TIMEZONE, DEFAULT_TOPIC, DOM_VAR, ERROR_TEMPLATE_VAR, EXCEPTION_VAR, EXTENSIONS_VAR, FALSE, GLOBAL_VAR, HOME_PROPERTY, INCLUDE_EXTS_PROPERTY, INCLUDE_VAR, INDEX_INDICATOR_VAR, INDEX_TEMPLATE_VAR, LAYOUT_TEMPLATE_VAR, MACRO_LIB_PROPERTY, MISSING_TEMPLATE_VAR, OUTPUT_VAR, PAGE_EXPIRE, PAGE_TEMPLATE_VAR, PANIC_404_PAGE, PANIC_404_PROPERTY, PANIC_500_PAGE, PANIC_500_PROPERTY, PARAM_PARSER_VAR, PATH_VAR, REQUEST_VAR, RESPONSE_VAR, SAX_CLASS_PROPERTY, SERVLET_DEBUG, SERVLET_LOGCONF_PROPERTY, SQL_SUFFIX, TEMPLATE_PATHS_PROPERTY, TIMEZONE_PROPERTY, TRUE, URI_VAR, VELOCITY_LOGFILE_DEFAULT, VELOCITY_LOGFILE_PROPERTY, XML_EXTS, XML_EXTS_PROPERTY, XML_PATHS_PROPERTY, XML_SUFFIX, XSL_EXTS, XSL_EXTS_PROPERTY, XSL_PATHS_PROPERTY
 
Constructor Summary
TemplateLineup(org.apache.commons.collections.ExtendedProperties sc, java.lang.String category)
           
 
Method Summary
private  cbc.template.presentation.Lineup getDb()
           
static Lineup getInstance(org.apache.velocity.context.Context context)
          getInstance: returns the Singleton instance for this category, fetching it from the map or creating a new one as needed
static Lineup getInstance(java.lang.String category, org.apache.velocity.context.Context context)
           
 java.lang.Object getLineup()
          Get the value of html.
protected  void setLineup()
          Create a new presentation.Lineup object refreshing the data cache.
 
Methods inherited from class ca.cbc.sportwire.servlet.data.Lineup
defaultPeriod, getCached, getCached, getCategory, getTopic, refresh, setTopic
 
Methods inherited from class ca.cbc.sportwire.util.PeriodicData
bump, isRunning, run, setInterval, setRunning
 
Methods inherited from class java.lang.Thread
, activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, exit, getContextClassLoader, getName, getPriority, getThreadGroup, init, interrupt, interrupt0, interrupted, isAlive, isDaemon, isInterrupted, isInterrupted, join, join, join, nextThreadNum, registerNatives, resume, resume0, setContextClassLoader, setDaemon, setName, setPriority, setPriority0, sleep, sleep, start, stop, stop, stop0, suspend, suspend0, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

cat

static org.apache.log4j.Category cat

db

private cbc.template.presentation.Lineup db

_lineups

private static java.util.Map _lineups
Constructor Detail

TemplateLineup

public TemplateLineup(org.apache.commons.collections.ExtendedProperties sc,
                      java.lang.String category)
Method Detail

getDb

private cbc.template.presentation.Lineup getDb()

getLineup

public java.lang.Object getLineup()
Get the value of html.
Overrides:
getLineup in class Lineup
Returns:
String value of html.

setLineup

protected void setLineup()
Create a new presentation.Lineup object refreshing the data cache.
Overrides:
setLineup in class Lineup

getInstance

public static Lineup getInstance(org.apache.velocity.context.Context context)
getInstance: returns the Singleton instance for this category, fetching it from the map or creating a new one as needed
Parameters:
category - a String value
Returns:
a Lineup value

getInstance

public static Lineup getInstance(java.lang.String category,
                                 org.apache.velocity.context.Context context)