org.objectweb.telosys.common
Class TelosysContextListener

java.lang.Object
  extended byorg.objectweb.telosys.common.TelosysContextListener
All Implemented Interfaces:
java.util.EventListener, javax.servlet.ServletContextListener

public abstract class TelosysContextListener
extends java.lang.Object
implements javax.servlet.ServletContextListener


Constructor Summary
TelosysContextListener()
          Constructs a ServletContextListener dedicated to a Telosys web application
 
Method Summary
 void contextDestroyed(javax.servlet.ServletContextEvent event)
           
 void contextInitialized(javax.servlet.ServletContextEvent event)
           
 void error(java.lang.String sMsg)
          Print a standard error message, using the active loggers
 void info(java.lang.String s)
          Print a standard info message, using the active loggers
 void infoStep(int step)
          Print the step message
abstract  void initApplication(javax.servlet.ServletContext servletContext, ScreenApplication screenApplication)
          Second initialization step : Application initialization
abstract  void initTelosys(javax.servlet.ServletContext servletContext, ScreenApplication screenApplication)
          First initialization step : Telosys initialization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TelosysContextListener

public TelosysContextListener()
Constructs a ServletContextListener dedicated to a Telosys web application

Method Detail

initTelosys

public abstract void initTelosys(javax.servlet.ServletContext servletContext,
                                 ScreenApplication screenApplication)
First initialization step : Telosys initialization

Parameters:
servletContext -
screenApplication -

initApplication

public abstract void initApplication(javax.servlet.ServletContext servletContext,
                                     ScreenApplication screenApplication)
Second initialization step : Application initialization

Parameters:
servletContext -
screenApplication -

contextInitialized

public void contextInitialized(javax.servlet.ServletContextEvent event)
Specified by:
contextInitialized in interface javax.servlet.ServletContextListener

contextDestroyed

public void contextDestroyed(javax.servlet.ServletContextEvent event)
Specified by:
contextDestroyed in interface javax.servlet.ServletContextListener

infoStep

public void infoStep(int step)
Print the step message

Parameters:
step -

info

public void info(java.lang.String s)
Print a standard info message, using the active loggers

Parameters:
s -

error

public void error(java.lang.String sMsg)
Print a standard error message, using the active loggers

Parameters:
sMsg -