public interface Initialization
Bootstrapper
is tasked with making the correct instance of this class which is then injected into the
servlet statically on boot. This in turn is called in the servlet init method.
Created by Jeff Gaynor
on 4/15/14 at 10:24 AM
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) |
void init() throws javax.servlet.ServletException
javax.servlet.ServletException
void setEnvironment(AbstractEnvironment environment)
AbstractEnvironment getEnvironment()
AbstractServlet getServlet()
ServletContext
set. There has to be a back reference to
or you cannot completely control servlet startup.void setServlet(AbstractServlet servlet)
ExceptionHandler getExceptionHandler()
Copyright © 2019. All Rights Reserved.