We use cookies to serve our customers and website visitors in the best possible way. Cookies are used for the proper functioning of the website and for improving the user experience, monitoring visitor traffic and marketing purposes. By continuing to browse the site, you agree to our use of cookies. You can read more about cookies here.
com.vaadin.flow.server.startup.
Class ServletDeployer
- java.lang.Object
-
- com.vaadin.flow.server.startup.ServletDeployer
-
All Implemented Interfaces:
EventListener, javax.servlet.ServletContextListener
public class ServletDeployer extends Object implements javax.servlet.ServletContextListener
Context listener that automatically registers Vaadin servlets. The servlets registered are:
- Vaadin application servlet, mapped to '/*'
The servlet won't be registered, if anyVaadinServlet
is registered already or if there are no classes annotated withRoute
annotation. - Frontend files servlet, mapped to '/frontend/*'
The servlet is registered when the application is started in the development mode or hasConstants.USE_ORIGINAL_FRONTEND_RESOURCES
parameter set totrue
.
Constants.DISABLE_AUTOMATIC_SERVLET_REGISTRATION
system property is set totrue
.Since:
1.0
Author:
Vaadin Ltd
See Also:
VaadinServletConfiguration.disableAutomaticServletRegistration()
- Vaadin application servlet, mapped to '/*'
-
-
Constructor Summary
Constructors Constructor and Description ServletDeployer()
-
Method Summary
All Methods Modifier and Type Method and Description void
contextDestroyed(javax.servlet.ServletContextEvent sce)
void
contextInitialized(javax.servlet.ServletContextEvent sce)
-
-
-
Method Detail
-
contextInitialized
public void contextInitialized(javax.servlet.ServletContextEvent sce)
Specified by:
contextInitialized
in interfacejavax.servlet.ServletContextListener
-
contextDestroyed
public void contextDestroyed(javax.servlet.ServletContextEvent sce)
Specified by:
contextDestroyed
in interfacejavax.servlet.ServletContextListener
-
-