|
|||||||||
| Home >> All >> info >> crossbar >> [ filtersAndListeners overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
info.crossbar.filtersAndListeners
Class ContextListener

java.lang.Objectinfo.crossbar.filtersAndListeners.ContextListener
- All Implemented Interfaces:
- java.util.EventListener, javax.servlet.ServletContextListener
- public class ContextListener
- extends java.lang.Object
- implements javax.servlet.ServletContextListener
- extends java.lang.Object
ContextListener class for use by Crossbar
- Version:
- View source, revision history
$Revision: 1.4 $ $Date: 2003/06/21 00:42:13 $
DESCRIPTION: An application lifecycle event listener that executes when the servlet context is created and destroyed. Sets up logging for the application and initializes any classes needed throughout the application.
| Constructor Summary | |
ContextListener()
|
|
| Method Summary | |
void |
contextDestroyed(javax.servlet.ServletContextEvent sce)
Notification that the servlet context is about to be shut down. |
void |
contextInitialized(javax.servlet.ServletContextEvent sce)
Notification that the web application initialization process is starting. |
protected static java.lang.String |
getLogFilePath(javax.servlet.ServletContext context)
Utility method returns a path to a servlet.log file. |
protected static java.lang.String |
getPackageParent(javax.servlet.ServletContext context)
Utility method returns "info.crossbar" or something similar. |
static java.util.logging.Logger |
setLogging(javax.servlet.ServletContext context)
Set up logging for the application. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
ContextListener
public ContextListener()
| Method Detail |
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
- Description copied from interface:
javax.servlet.ServletContextListener - Notification that the web application initialization
process is starting.
All ServletContextListeners are notified of context
initialization before any filter or servlet in the web
application is initialized.
- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener
setLogging
public static java.util.logging.Logger setLogging(javax.servlet.ServletContext context) throws javax.servlet.ServletException
- Set up logging for the application. Logging properties are set here for
use throughout the application. Uses the Java Logging API.
getLogFilePath
protected static java.lang.String getLogFilePath(javax.servlet.ServletContext context) throws javax.servlet.ServletException, java.io.IOException
- Utility method returns a path to a servlet.log file.
getPackageParent
protected static java.lang.String getPackageParent(javax.servlet.ServletContext context) throws javax.servlet.ServletException
- Utility method returns "info.crossbar" or something similar.
Easy to override in derived applications. Used to set the java.util.logging.Logger
object to be the parent of all subsequent loggers in the application.
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
- Description copied from interface:
javax.servlet.ServletContextListener - Notification that the servlet context is about to be shut down.
All servlets and filters have been destroy()ed before any
ServletContextListeners are notified of context
destruction.
- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener
|
|||||||||
| Home >> All >> info >> crossbar >> [ filtersAndListeners overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
info.crossbar.filtersAndListeners.ContextListener