com.sun.grizzly.http.servlet.deployer.comparator
Class ServletLoadOnStartupComparator
java.lang.Object
com.sun.grizzly.http.servlet.deployer.comparator.ServletLoadOnStartupComparator
- All Implemented Interfaces:
- Comparator<Servlet>
public class ServletLoadOnStartupComparator
- extends Object
- implements Comparator<Servlet>
Method Summary |
int |
compare(Servlet o1,
Servlet o2)
The load-on-startup element indicates that this servlet should be
loaded (instantiated and have its init() called) on the startup of the
web application. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ServletLoadOnStartupComparator
public ServletLoadOnStartupComparator()
compare
public int compare(Servlet o1,
Servlet o2)
- The load-on-startup element indicates that this servlet should be
loaded (instantiated and have its init() called) on the startup of the
web application. The optional contents of these element must be an
integer indicating the order in which the servlet should be loaded. If
the value is a negative integer, or the element is not present, the
container is free to load the servlet whenever it chooses. If the value
is a positive integer or 0, the container must load and initialize the
servlet as the application is deployed. The container must guarantee that
servlets marked with lower integers are loaded before servlets marked
with higher integers. The container may choose the order of loading of
servlets with the same load-on-start-up value.
- Specified by:
compare
in interface Comparator<Servlet>
Copyright © 2012 Oracle Corporation. All Rights Reserved.