Class ExtensionsEntryPoint
- java.lang.Object
-
- io.quarkus.arc.processor.bcextensions.ExtensionsEntryPoint
-
public class ExtensionsEntryPoint extends Object
Entrypoint for the Build Compatible Extensions implementation. Used by the rest of ArC.Exactly one instance of this class is supposed to exist for a single
BeanProcessor.All methods are single-threaded (serial), but it is expected that one may be called on a different thread than the other. Therefore, this class as well as all other classes that implement the BCExtensions API do not guard data against concurrent access, but they do ensure visibility.
-
-
Constructor Summary
Constructors Constructor Description ExtensionsEntryPoint()ExtensionsEntryPoint(List<jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension> extensions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidregisterMetaAnnotations(BeanProcessor.Builder builder)Must be called afterrunDiscoveryand beforerunEnhancement.voidregisterSyntheticBeans(BeanRegistrar.RegistrationContext context)Must be called afterrunSynthesisand beforerunRegistrationAgain.voidregisterSyntheticObservers(ObserverRegistrar.RegistrationContext context)Must be called afterrunSynthesisand beforerunRegistrationAgain.voidregisterValidationErrors(BeanDeploymentValidator.ValidationContext context)Must be called last, afterrunValidation.voidrunDiscovery(org.jboss.jandex.IndexView applicationIndex, Set<String> additionalClasses)Must be called first, beforeregisterMetaAnnotations.voidrunEnhancement(org.jboss.jandex.IndexView beanArchiveIndex, BeanProcessor.Builder builder)Must be called afterregisterMetaAnnotationsand beforerunRegistration.voidrunRegistration(org.jboss.jandex.IndexView beanArchiveIndex, Collection<BeanInfo> allBeans, Collection<ObserverInfo> allObservers)Must be called afterrunEnhancementand beforerunSynthesis.voidrunRegistrationAgain(org.jboss.jandex.IndexView beanArchiveIndex, Collection<BeanInfo> allBeans, Collection<ObserverInfo> allObservers)Must be called afterregisterSynthetic{Beans,Observers}and beforerunValidation.voidrunSynthesis(org.jboss.jandex.IndexView beanArchiveIndex)Must be called afterrunRegistrationand beforeregisterSyntheticBeans.voidrunValidation(org.jboss.jandex.IndexView beanArchiveIndex, Collection<BeanInfo> allBeans, Collection<ObserverInfo> allObservers)Must be called afterrunRegistrationAgainand beforeregisterValidationErrors.
-
-
-
Constructor Detail
-
ExtensionsEntryPoint
public ExtensionsEntryPoint()
-
ExtensionsEntryPoint
public ExtensionsEntryPoint(List<jakarta.enterprise.inject.build.compatible.spi.BuildCompatibleExtension> extensions)
-
-
Method Detail
-
runDiscovery
public void runDiscovery(org.jboss.jandex.IndexView applicationIndex, Set<String> additionalClasses)Must be called first, beforeregisterMetaAnnotations.It is a no-op if no
BuildCompatibleExtensionwas found.
-
registerMetaAnnotations
public void registerMetaAnnotations(BeanProcessor.Builder builder)
Must be called afterrunDiscoveryand beforerunEnhancement.It is a no-op if no
BuildCompatibleExtensionwas found.
-
runEnhancement
public void runEnhancement(org.jboss.jandex.IndexView beanArchiveIndex, BeanProcessor.Builder builder)Must be called afterregisterMetaAnnotationsand beforerunRegistration.It is a no-op if no
BuildCompatibleExtensionwas found.
-
runRegistration
public void runRegistration(org.jboss.jandex.IndexView beanArchiveIndex, Collection<BeanInfo> allBeans, Collection<ObserverInfo> allObservers)Must be called afterrunEnhancementand beforerunSynthesis.It is a no-op if no
BuildCompatibleExtensionwas found.
-
runSynthesis
public void runSynthesis(org.jboss.jandex.IndexView beanArchiveIndex)
Must be called afterrunRegistrationand beforeregisterSyntheticBeans.It is a no-op if no
BuildCompatibleExtensionwas found.
-
registerSyntheticBeans
public void registerSyntheticBeans(BeanRegistrar.RegistrationContext context)
Must be called afterrunSynthesisand beforerunRegistrationAgain.It is a no-op if no
BuildCompatibleExtensionwas found.
-
registerSyntheticObservers
public void registerSyntheticObservers(ObserverRegistrar.RegistrationContext context)
Must be called afterrunSynthesisand beforerunRegistrationAgain.It is a no-op if no
BuildCompatibleExtensionwas found.
-
runRegistrationAgain
public void runRegistrationAgain(org.jboss.jandex.IndexView beanArchiveIndex, Collection<BeanInfo> allBeans, Collection<ObserverInfo> allObservers)Must be called afterregisterSynthetic{Beans,Observers}and beforerunValidation.It is a no-op if no
BuildCompatibleExtensionwas found.
-
runValidation
public void runValidation(org.jboss.jandex.IndexView beanArchiveIndex, Collection<BeanInfo> allBeans, Collection<ObserverInfo> allObservers)Must be called afterrunRegistrationAgainand beforeregisterValidationErrors.It is a no-op if no
BuildCompatibleExtensionwas found.
-
registerValidationErrors
public void registerValidationErrors(BeanDeploymentValidator.ValidationContext context)
Must be called last, afterrunValidation.It is a no-op if no
BuildCompatibleExtensionwas found.
-
-