Class CdiServletContainerInitializer

java.lang.Object
org.eclipse.jetty.cdi.CdiServletContainerInitializer
All Implemented Interfaces:
jakarta.servlet.ServletContainerInitializer

public class CdiServletContainerInitializer extends Object implements jakarta.servlet.ServletContainerInitializer

A ServletContainerInitializer that introspects for a CDI API implementation within a web application and applies an integration mode if CDI is found. CDI integration modes can be selected per webapp with the "org.eclipse.jetty.cdi" init parameter or default to the mode set by the "org.eclipse.jetty.cdi" server attribute. Supported modes are:

CdiSpiDecorator
Jetty will call the CDI SPI within the webapp to decorate objects (default).
CdiDecoratingLister
The webapp may register a decorator on the context attribute "org.eclipse.jetty.cdi.decorator".
See Also:
  • Field Details

  • Constructor Details

    • CdiServletContainerInitializer

      public CdiServletContainerInitializer()
  • Method Details

    • onStartup

      public void onStartup(Set<Class<?>> c, jakarta.servlet.ServletContext ctx)
      Specified by:
      onStartup in interface jakarta.servlet.ServletContainerInitializer