public class ServletDeployer extends Object implements javax.servlet.ServletContextListener
The servlets registered are:
VaadinServlet is registered
already or if there are no classes annotated with Route
annotation.
In addition to the rules above, a servlet won't be registered, if any servlet
had been mapped to the same path already or if
InitParameters.DISABLE_AUTOMATIC_SERVLET_REGISTRATION system property
is set to true.
| Constructor and Description |
|---|
ServletDeployer() |
| Modifier and Type | Method and Description |
|---|---|
void |
contextDestroyed(javax.servlet.ServletContextEvent sce) |
void |
contextInitialized(javax.servlet.ServletContextEvent sce) |
static void |
logAppStartupToConsole(javax.servlet.ServletContext servletContext,
boolean servletAutomaticallyCreated)
Prints to sysout a notification to the user that the application has been
deployed.
|
public void contextInitialized(javax.servlet.ServletContextEvent sce)
contextInitialized in interface javax.servlet.ServletContextListenerpublic static void logAppStartupToConsole(javax.servlet.ServletContext servletContext,
boolean servletAutomaticallyCreated)
This method is public so that it can be called in add-ons that map servlet automatically but don't use this class for that.
servletContext - the deployed servlet contextservletAutomaticallyCreated - whether the servlet was automatically createdpublic void contextDestroyed(javax.servlet.ServletContextEvent sce)
contextDestroyed in interface javax.servlet.ServletContextListenerCopyright © 2021. All rights reserved.