@ProviderType public abstract class CDIContainerInitializer extends Object
| Constructor and Description |
|---|
CDIContainerInitializer() |
| Modifier and Type | Method and Description |
|---|---|
abstract CDIContainerInitializer |
addBeanClasses(Class<?>... classes)
Adds the listed classes to the resulting synthetic bean archive.
|
abstract CDIContainerInitializer |
addBeanXmls(URL... beanXmls)
Adds the listed bean.xml files the resulting synthetic bean archive
|
abstract CDIContainerInitializer |
addExtension(javax.enterprise.inject.spi.Extension extension,
Map<String,Object> properties)
Adds the given Extension instance along with any service properties available to the synthetic bean archive
|
abstract CDIContainerInitializer |
addProperty(String key,
Object value)
Adds a configuration property to the container
|
abstract AutoCloseable |
initialize()
Bootstraps the container that has been built from this CDIContainerInitializer
|
abstract CDIContainerInitializer |
setBundleContext(org.osgi.framework.BundleContext bundleContext)
Sets the
BundleContext for which this synthetic bean archive is created |
abstract CDIContainerInitializer |
setClassLoader(SpiLoader spiLoader)
Sets the SpiLoader for this synthetic bean archive
|
public abstract CDIContainerInitializer addBeanClasses(Class<?>... classes)
Contents will be added to those added during previous calls.
classes - public abstract CDIContainerInitializer addBeanXmls(URL... beanXmls)
Contents will be added to those added during previous calls.
beanXmls - public abstract CDIContainerInitializer addExtension(javax.enterprise.inject.spi.Extension extension, Map<String,Object> properties)
Contents will be added to those added during previous calls.
extension - properties - public abstract CDIContainerInitializer addProperty(String key, Object value)
Contents will be added to those added during previous calls.
key - value - public abstract CDIContainerInitializer setClassLoader(SpiLoader spiLoader)
The last such call will win.
spiLoader - public abstract CDIContainerInitializer setBundleContext(org.osgi.framework.BundleContext bundleContext)
BundleContext for which this synthetic bean archive is created
The last such call will win.
bundleContext - public abstract AutoCloseable initialize()
Copyright © 2020 The Apache Software Foundation. All rights reserved.