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 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
-
Constructor Summary
-
Method Summary
-
Field Details
-
CDI_INTEGRATION_ATTRIBUTE
- See Also:
-
-
Constructor Details
-
CdiServletContainerInitializer
public CdiServletContainerInitializer()
-
-
Method Details
-
onStartup
- Specified by:
onStartup
in interfacejavax.servlet.ServletContainerInitializer
-