Package com.vaadin.cdi
Class CdiServletDeployer
- java.lang.Object
-
- com.vaadin.cdi.CdiServletDeployer
-
- All Implemented Interfaces:
javax.servlet.ServletContainerInitializer
public class CdiServletDeployer extends Object implements javax.servlet.ServletContainerInitializer
Container initializer that automatically registers a CDI Vaadin servlet. The servlet is only registered if all of the following conditions apply:- At least one class annotated with
@Routeis found on the classpath - No servlet is registered for
/* - No Vaadin servlet is registered
Vaadin ships with
ServletDeployer, which is aWebListenerto register the defaultVaadinServlet. We can't override it from java, but since this class is a container initializer, we run first. After registration of the CDI Vaadin Servlet, the original deployer won't register the default one.The rest of this class is copied from
ServletDeployer.
-
-
Constructor Summary
Constructors Constructor Description CdiServletDeployer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidonStartup(Set<Class<?>> classSet, javax.servlet.ServletContext ctx)
-