public class OA4MPServletInitializer extends Object implements Initialization
Created by Jeff Gaynor
on 4/15/14 at 10:37 AM
Modifier and Type | Field and Description |
---|---|
protected ExceptionHandler |
exceptionHandler |
protected static boolean |
isInitRun |
Constructor and Description |
---|
OA4MPServletInitializer() |
Modifier and Type | Method and Description |
---|---|
protected NewClientNotifier |
createNewClientNotifier(MailUtil mailUtil,
MyLoggingFacade logger) |
AbstractEnvironment |
getEnvironment() |
ExceptionHandler |
getExceptionHandler() |
AbstractServlet |
getServlet()
Many initialization tasks can only be done dynamically, after the servlet has been created and
its
ServletContext set. |
void |
init()
This should handle all initialization tasks for a servlet.
|
void |
setEnvironment(AbstractEnvironment environment) |
void |
setServlet(AbstractServlet servlet) |
void |
setupNotifiers() |
protected ExceptionHandler exceptionHandler
protected static boolean isInitRun
public ExceptionHandler getExceptionHandler()
getExceptionHandler
in interface Initialization
public AbstractEnvironment getEnvironment()
getEnvironment
in interface Initialization
protected NewClientNotifier createNewClientNotifier(MailUtil mailUtil, MyLoggingFacade logger)
public void setupNotifiers() throws IOException
IOException
public void init() throws javax.servlet.ServletException
Initialization
init
in interface Initialization
javax.servlet.ServletException
public void setEnvironment(AbstractEnvironment environment)
setEnvironment
in interface Initialization
public AbstractServlet getServlet()
Initialization
ServletContext
set. There has to be a back reference to
or you cannot completely control servlet startup.getServlet
in interface Initialization
public void setServlet(AbstractServlet servlet)
setServlet
in interface Initialization
Copyright © 2019. All Rights Reserved.