Class CdiServletContainerInitializer

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

public class CdiServletContainerInitializer extends Object implements javax.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, javax.servlet.ServletContext ctx)
      Specified by:
      onStartup in interface javax.servlet.ServletContainerInitializer