public final class CdiContainerLoader extends Object
This class provides access to the ContainerControl.
It uses the java.util.ServiceLoader
mechanism to
automatically pickup the container providers from the classpath.
Usage:
CdiContainer container = CdiContainerLoader.getCdiContainer(); container.boot(); ...
CdiContainerLoader internally uses the ServiceLoader
to automatically detect the container implementation which should be used.
Modifier and Type | Method and Description |
---|---|
static CdiContainer |
getCdiContainer() |
public static CdiContainer getCdiContainer()
CdiContainer
implementation available on the classpathIllegalStateException
- if none or multiple CdiContainer implementations
are found on the classpath.Copyright © 2020 The Apache Software Foundation. All rights reserved.