Class ServletContextListenerImpl
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.api23.ServletContextListenerImpl
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextListener
public class ServletContextListenerImpl
extends Base
implements javax.servlet.ServletContextListener
An implementation of the ServletContextListener interface that will listen
to application server events when the application is deployed with its own
ServletContextListener(s) declared, so that the events can be forwarded to
the application's listener(s). Primarily, this is required to override the
ServletContext reference passed in the event. This implementation would
only need to be registered in the deployment descriptor if the servlet
context of the application server is being wrapped by Coherence AND if the
application has classes listed in the deployment descriptor that implement
the ServletContextListener interface.
- Version:
- Coherence 2.3
- Author:
- cp 2003.07.23
-
Nested Class Summary
Nested classes/interfaces inherited from class com.tangosol.util.Base
Base.LoggingWriter -
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcontextDestroyed(javax.servlet.ServletContextEvent evt) Notification that the servlet context is about to be shut down.voidcontextInitialized(javax.servlet.ServletContextEvent evt) Notification that the web application initialization process is starting.protected ListenersGet the application ServletContextEvent listeners.protected javax.servlet.ServletContextGet the Coherence ServletContext.protected SessionHelperGet the SessionHelper.protected Exceptioninit(javax.servlet.ServletContextEvent evt) Configure the listener from the passed event object.Methods inherited from class com.tangosol.util.Base
azzert, azzert, azzert, azzertFailed, breakLines, breakLines, capitalize, checkNotEmpty, checkNotNull, checkRange, computeSafeWaitTime, decimalValue, dup, dup, ensureBigDecimal, ensureClassLoader, ensureRuntimeException, ensureRuntimeException, equals, equalsDeep, err, err, err, err, err, escape, formatDateTime, getCallerStackFrame, getCommonMonitor, getCommonMonitor, getCommonMonitor, getContextClassLoader, getContextClassLoader, getDeepMessage, getErr, getLastSafeTimeMillis, getLog, getMaxDecDigits, getMaxHexDigits, getOriginalException, getOut, getProcessRandom, getRandom, getRandomBinary, getRandomBinary, getRandomString, getSafeTimeMillis, getStackFrame, getStackFrames, getStackTrace, getStackTrace, getStackTrace, getThreadFactory, getTimeZone, getUpTimeMillis, hashCode, hexValue, indentString, indentString, isDecimal, isHex, isLogEcho, isOctal, log, log, log, log, log, makeInteger, makeLong, makeThread, mergeArray, mergeBooleanArray, mergeByteArray, mergeCharArray, mergeDoubleArray, mergeFloatArray, mergeIntArray, mergeLongArray, mod, mod, newHashMap, newHashMap, newHashSet, newHashSet, octalValue, out, out, out, out, out, pad, parseBandwidth, parseBandwidth, parseDelimitedString, parseHex, parseHex, parseMemorySize, parseMemorySize, parsePercentage, parseTime, parseTime, parseTimeNanos, parseTimeNanos, printStackTrace, randomize, randomize, randomize, randomize, read, read, read, read, read, read, read, replace, setErr, setLog, setLogEcho, setOut, sleep, toBandwidthString, toBandwidthString, toCharEscape, toCrc, toCrc, toCrc, toCrc, toCrc, toDecString, toDelimitedString, toDelimitedString, toDelimitedString, toDelimitedString, toHex, toHex, toHexDump, toHexEscape, toHexEscape, toHexEscape, toHexEscape, toHexString, toMemorySizeString, toMemorySizeString, toQuotedCharEscape, toQuotedStringEscape, toSqlString, toString, toString, toStringEscape, toUnicodeEscape, trace, trace, trace, trace, trace, trace, trace, trace, trace, truncateString, truncateString, wait
-
Constructor Details
-
ServletContextListenerImpl
public ServletContextListenerImpl()Public default constructor; required by spec.
-
-
Method Details
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent evt) Notification that the web application initialization process is starting. All ServletContextListeners are notified of context initialisation before any filter or servlet in the web application is initialized.- Specified by:
contextInitializedin interfacejavax.servlet.ServletContextListener- Parameters:
evt- the ServletContextEvent
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent evt) Notification that the servlet context is about to be shut down. All servlets have been had their destroy() method called before any ServletContextListeners are notified of context destruction.- Specified by:
contextDestroyedin interfacejavax.servlet.ServletContextListener- Parameters:
evt- the ServletContextEvent
-
getSessionHelper
Get the SessionHelper.- Returns:
- the SessionHelper for this app
-
getServletContext
protected javax.servlet.ServletContext getServletContext()Get the Coherence ServletContext.- Returns:
- the Coherence ServletContext
-
getListeners
Get the application ServletContextEvent listeners.- Returns:
- the application ServletContextEvent listeners
-
init
Configure the listener from the passed event object.- Parameters:
evt- a ServletContextEvent that the listener can use to configure itself- Returns:
- an optional initialization Exception
-