public class ServletDeployer extends Object
The servlets registered are:
VaadinServlet
is registered
already or if there are no classes annotated with Route
annotation.InitParameters.USE_ORIGINAL_FRONTEND_RESOURCES
parameter
set to true
.
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
.
For internal use only. May be renamed or removed in a future release.
VaadinServletConfiguration.disableAutomaticServletRegistration()
Modifier and Type | Class and Description |
---|---|
static class |
ServletDeployer.StubServletConfig
Default ServletConfig implementation.
|
Constructor and Description |
---|
ServletDeployer() |
Modifier and Type | Method and Description |
---|---|
void |
contextDestroyed(ServletContextEvent sce) |
void |
contextInitialized(ServletContextEvent sce) |
static void |
logAppStartupToConsole(ServletContext servletContext,
boolean servletAutomaticallyCreated)
Prints to sysout a notification to the user that the application has been
deployed.
|
public void contextInitialized(ServletContextEvent sce)
public static void logAppStartupToConsole(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(ServletContextEvent sce)
Copyright © 2025. All rights reserved.