Class JettyContainer

  • All Implemented Interfaces:
    Container

    public class JettyContainer
    extends AbstractJettyContainer
    Jetty Container.

    This container requires that the jetty server register DecoratingListener to dynamically register a decorator instance that wraps the WeldDecorator added as an attribute. The jetty decorate module does this and indicates it's availability by setting the "org.eclipse.jetty.webapp.DecoratingListener" to the name of the watched attribute.

    Jetty also provides the cdi-spi module that may directly invoke the CDI SPI. This module indicates it's availability by setting the "org.eclipse.jetty.cdi" context attribute to "CdiDecorator". If this module is used, then this JettyContainer only logs a message and does no further integration.

    Since:
    Jetty 9.4.20
    Author:
    Greg Wilkins
    See Also:
    JettyLegacyContainer