Class WebInstallersBundle

  • All Implemented Interfaces:
    GuiceyBundle

    public class WebInstallersBundle
    extends UniqueGuiceyBundle
    Bundle adds servlet installers for filters, servlets and listeners installation. Standard java.servlet.annotation annotations (WebFilter, WebServlet, WebListener) are used. Note that these annotations are not recognized by jetty automatically, because dropwizard doesn't include jetty-annotations modules.

    By default, everything is installed for main context. Special annotation AdminContext must be used to install into admin or both contexts.

    Also bundle assigns application (Environment.getApplicationContext()) and admin (Environment.getAdminContext()) contexts display names (ContextHandler.setDisplayName(String)). Does not override already assigned name.

    If only annotations used for filters and servlets definitions consider disabling support for guice ServletModule using GuiceyOptions.GuiceFilterRegistration.

    Since:
    06.08.2016