public class ClientServletInitializer extends Object implements Initialization
Created by Jeff Gaynor
on 4/15/14 at 11:21 AM
Modifier and Type | Field and Description |
---|---|
protected ExceptionHandler |
exceptionHandler |
protected boolean |
hasRun |
Constructor and Description |
---|
ClientServletInitializer() |
Modifier and Type | Method and Description |
---|---|
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) |
protected ExceptionHandler exceptionHandler
protected boolean hasRun
public ExceptionHandler getExceptionHandler()
getExceptionHandler
in interface Initialization
public AbstractEnvironment getEnvironment()
getEnvironment
in interface Initialization
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.