Package org.eclipse.jetty.cdi
Class CdiServletContainerInitializer
- java.lang.Object
-
- org.eclipse.jetty.cdi.CdiServletContainerInitializer
-
- All Implemented Interfaces:
javax.servlet.ServletContainerInitializer
public class CdiServletContainerInitializer extends java.lang.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".
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
CDI_INTEGRATION_ATTRIBUTE
-
Constructor Summary
Constructors Constructor Description CdiServletContainerInitializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
onStartup(java.util.Set<java.lang.Class<?>> c, javax.servlet.ServletContext ctx)
-
-
-
Field Detail
-
CDI_INTEGRATION_ATTRIBUTE
public static final java.lang.String CDI_INTEGRATION_ATTRIBUTE
- See Also:
- Constant Field Values
-
-