public class Jetty extends TopLevelService
There are two ways to register servlets and filters:
servlet with @WebServlet
and filter with @WebFilterServletModule in Guice
Please note that when using annotations the ClassIndex facility
is used to get the list of annotated classes as opposed to otherwise more common
classpath scanning. The implication of that is that the class will be "visible"
to this Jetty service only when it was compiled with evo-classindex.jar in the classpath
which contains annotation processor generating the needed class index.
Use ServletModule when that is not the case.
Copyright © 2012 Atteo. All Rights Reserved.