public class DefaultServletContextAttributeListener extends SimpleBasicTinyConfigAware implements TinyServletContextAttributeListener
basicTinyConfigDEFAULT_PRECEDENCE, HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
DefaultServletContextAttributeListener(javax.servlet.ServletContextAttributeListener servletContextAttributeListener) |
| Modifier and Type | Method and Description |
|---|---|
void |
attributeAdded(javax.servlet.ServletContextAttributeEvent scab) |
void |
attributeRemoved(javax.servlet.ServletContextAttributeEvent scab) |
void |
attributeReplaced(javax.servlet.ServletContextAttributeEvent scab) |
int |
getOrder()
Return the order value of this object, with a
higher value meaning greater in terms of sorting.
|
setBasicConfigclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsetBasicConfigpublic DefaultServletContextAttributeListener(javax.servlet.ServletContextAttributeListener servletContextAttributeListener)
public void attributeAdded(javax.servlet.ServletContextAttributeEvent scab)
attributeAdded in interface javax.servlet.ServletContextAttributeListenerpublic void attributeRemoved(javax.servlet.ServletContextAttributeEvent scab)
attributeRemoved in interface javax.servlet.ServletContextAttributeListenerpublic void attributeReplaced(javax.servlet.ServletContextAttributeEvent scab)
attributeReplaced in interface javax.servlet.ServletContextAttributeListenerpublic int getOrder()
OrderedNormally starting with 0 or 1, with Ordered.LOWEST_PRECEDENCE
indicating greatest. Same order values will result in arbitrary
positions for the affected objects.
Higher value can be interpreted as lower priority, consequently the first object has highest priority (somewhat analogous to Servlet "load-on-startup" values).
Note that order values below 0 are reserved for framework purposes. Application-specified values should always be 0 or greater, with only framework components (internal or third-party) supposed to use lower values.
getOrder in interface OrderedOrdered.LOWEST_PRECEDENCECopyright © 2006–2018 TinyGroup. All rights reserved.