Package io.quarkus.arc.deployment
Class ContextRegistrationPhaseBuildItem
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.SimpleBuildItem
-
- io.quarkus.arc.deployment.ContextRegistrationPhaseBuildItem
-
public final class ContextRegistrationPhaseBuildItem extends io.quarkus.builder.item.SimpleBuildItemContext registration phase can be used to register custom CDI contexts.An extension that needs to produce other build items during the "context registration" phase should use this build item. The build step should produce a
ContextRegistrationPhaseBuildItem.ContextConfiguratorBuildItemor at least inject aBuildProducerfor this build item, otherwise it could be ignored or processed at the wrong time, e.g. afterArcProcessor.registerBeans(ContextRegistrationPhaseBuildItem, List, BuildProducer, BuildProducer, BuildProducer).Typical workflow involves obtaining a
ContextConfiguratorviagetContext().configure(). Note that there is no need to invokeContextConfigurator.done()once you are done as it is performed automatically.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classContextRegistrationPhaseBuildItem.ContextConfiguratorBuildItemA build item holding a list ofContextConfiguratorobjects which is used to register custom CDI contexts.
-
Constructor Summary
Constructors Constructor Description ContextRegistrationPhaseBuildItem(ContextRegistrar.RegistrationContext context, BeanProcessor beanProcessor)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) BeanProcessorgetBeanProcessor()ContextRegistrar.RegistrationContextgetContext()
-
-
-
Constructor Detail
-
ContextRegistrationPhaseBuildItem
public ContextRegistrationPhaseBuildItem(ContextRegistrar.RegistrationContext context, BeanProcessor beanProcessor)
-
-
Method Detail
-
getContext
public ContextRegistrar.RegistrationContext getContext()
-
getBeanProcessor
BeanProcessor getBeanProcessor()
-
-