Module io.helidon.microprofile.cdi
Package io.helidon.microprofile.cdi
Class HelidonContainerInitializer
- java.lang.Object
-
- javax.enterprise.inject.se.SeContainerInitializer
-
- io.helidon.microprofile.cdi.HelidonContainerInitializer
-
public class HelidonContainerInitializer extends SeContainerInitializer
This class ensures that container is created by us.
-
-
Constructor Summary
Constructors Constructor Description HelidonContainerInitializer()
This constructor ensures that we are not created through standard CDI means.
-
Method Summary
-
Methods inherited from class javax.enterprise.inject.se.SeContainerInitializer
newInstance
-
-
-
-
Constructor Detail
-
HelidonContainerInitializer
public HelidonContainerInitializer()
This constructor ensures that we are not created through standard CDI means.- Throws:
IllegalStateException
- unless explicitly configured not to do so.
-
-
Method Detail
-
addBeanClasses
public SeContainerInitializer addBeanClasses(Class<?>... classes)
- Specified by:
addBeanClasses
in classSeContainerInitializer
-
addPackages
public SeContainerInitializer addPackages(Class<?>... packageClasses)
- Specified by:
addPackages
in classSeContainerInitializer
-
addPackages
public SeContainerInitializer addPackages(boolean scanRecursively, Class<?>... packageClasses)
- Specified by:
addPackages
in classSeContainerInitializer
-
addPackages
public SeContainerInitializer addPackages(Package... packages)
- Specified by:
addPackages
in classSeContainerInitializer
-
addPackages
public SeContainerInitializer addPackages(boolean scanRecursively, Package... packages)
- Specified by:
addPackages
in classSeContainerInitializer
-
addExtensions
public SeContainerInitializer addExtensions(Extension... extensions)
- Specified by:
addExtensions
in classSeContainerInitializer
-
addExtensions
public SeContainerInitializer addExtensions(Class<? extends Extension>... extensions)
- Specified by:
addExtensions
in classSeContainerInitializer
-
enableInterceptors
public SeContainerInitializer enableInterceptors(Class<?>... interceptorClasses)
- Specified by:
enableInterceptors
in classSeContainerInitializer
-
enableDecorators
public SeContainerInitializer enableDecorators(Class<?>... decoratorClasses)
- Specified by:
enableDecorators
in classSeContainerInitializer
-
selectAlternatives
public SeContainerInitializer selectAlternatives(Class<?>... alternativeClasses)
- Specified by:
selectAlternatives
in classSeContainerInitializer
-
selectAlternativeStereotypes
public SeContainerInitializer selectAlternativeStereotypes(Class<? extends Annotation>... alternativeStereotypeClasses)
- Specified by:
selectAlternativeStereotypes
in classSeContainerInitializer
-
addProperty
public SeContainerInitializer addProperty(String key, Object value)
- Specified by:
addProperty
in classSeContainerInitializer
-
setProperties
public SeContainerInitializer setProperties(Map<String,Object> properties)
- Specified by:
setProperties
in classSeContainerInitializer
-
disableDiscovery
public SeContainerInitializer disableDiscovery()
- Specified by:
disableDiscovery
in classSeContainerInitializer
-
setClassLoader
public SeContainerInitializer setClassLoader(ClassLoader classLoader)
- Specified by:
setClassLoader
in classSeContainerInitializer
-
initialize
public SeContainer initialize()
- Specified by:
initialize
in classSeContainerInitializer
-
-