public class ServletInitializer extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
destroy(javax.servlet.ServletContext context)
Releases all shared resources on the first invocation of this method.
|
static String |
getHomeDir()
Deprecated.
Use
Vault.getHomeDirinstead. |
static void |
init(javax.servlet.ServletContext context)
Initialize servlet and JSP configuration on the first invocation of this
method.
|
public static void init(javax.servlet.ServletContext context)
throws javax.servlet.ServletException
Call this method in the init method of your servlet or
JSP. It will read the servlet initialization parameters from the
ServletConfig and ServletContext and
OpenNMS configuration files.
context - the ServletContext instance in which your
servlet is runningjavax.servlet.ServletException - if any.public static void destroy(javax.servlet.ServletContext context)
throws javax.servlet.ServletException
Call this method in the destroy method of your servlet or
JSP.
context - the ServletContext instance in which your
servlet is runningjavax.servlet.ServletException - if any.public static String getHomeDir()
Vault.getHomeDirinstead.String object.Copyright © 2015. All rights reserved.