Class ServletContextAttributeListenerImpl
java.lang.Object
com.tangosol.util.Base
com.tangosol.coherence.servlet.api23.ServletContextAttributeListenerImpl
- All Implemented Interfaces:
EventListener,javax.servlet.ServletContextAttributeListener
public class ServletContextAttributeListenerImpl
extends Base
implements javax.servlet.ServletContextAttributeListener
An implementation of the ServletContextAttributeListener interface that
will listen to the application server events and translate them (wrapping
the ServletContext) and routing them to the application listeners.
- 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
ConstructorsConstructorDescriptionPublic default constructor; required by spec. -
Method Summary
Modifier and TypeMethodDescriptionvoidattributeAdded(javax.servlet.ServletContextAttributeEvent evt) Notification that a new attribute was added to the servlet context.voidattributeRemoved(javax.servlet.ServletContextAttributeEvent evt) Notification that an existing attribute has been remved from the servlet context.voidattributeReplaced(javax.servlet.ServletContextAttributeEvent evt) Notification that an attribute on the servlet context has been replaced.protected voiddispatch(int nEvent, javax.servlet.ServletContextAttributeEvent evt) Dispatch a wrapped event to the application listeners.protected SessionHelperGet the Coherence SessionHelper.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
-
ServletContextAttributeListenerImpl
public ServletContextAttributeListenerImpl()Public default constructor; required by spec.
-
-
Method Details
-
attributeAdded
public void attributeAdded(javax.servlet.ServletContextAttributeEvent evt) Notification that a new attribute was added to the servlet context. Called after the attribute is added.- Specified by:
attributeAddedin interfacejavax.servlet.ServletContextAttributeListener- Parameters:
evt- the ServletContextAttributeEvent
-
attributeRemoved
public void attributeRemoved(javax.servlet.ServletContextAttributeEvent evt) Notification that an existing attribute has been remved from the servlet context. Called after the attribute is removed.- Specified by:
attributeRemovedin interfacejavax.servlet.ServletContextAttributeListener- Parameters:
evt- the ServletContextAttributeEvent
-
attributeReplaced
public void attributeReplaced(javax.servlet.ServletContextAttributeEvent evt) Notification that an attribute on the servlet context has been replaced. Called after the attribute is replaced.- Specified by:
attributeReplacedin interfacejavax.servlet.ServletContextAttributeListener- Parameters:
evt- the ServletContextAttributeEvent
-
getSessionHelper
Get the Coherence SessionHelper.- Returns:
- the Coherence SessionHelper
-
dispatch
protected void dispatch(int nEvent, javax.servlet.ServletContextAttributeEvent evt) Dispatch a wrapped event to the application listeners.- Parameters:
nEvent- the internal enum that identifies the event nameevt- the application server's ServletContextAttributeEvent
-