Class BootOnLoadExtension

  • All Implemented Interfaces:
    javax.enterprise.inject.spi.Extension

    public class BootOnLoadExtension
    extends Object
    implements javax.enterprise.inject.spi.Extension
    CDI extension that is responsible to eagerly bootstrap CDI beans that are annotated with @BootOnLoad. That mainly means that beans annotated with @BootOnLoad will be invoked (their) @PostConstruct method on CDI container initialization. This extension will only take effect on beans marked as:
    • @javax.enterprise.context.ApplicationScoped
    • @javax.inject.Singleton
    • Constructor Detail

      • BootOnLoadExtension

        public BootOnLoadExtension()
    • Method Detail

      • processBean

        public <X> void processBean​(@Observes
                                    javax.enterprise.inject.spi.ProcessBean<X> event)
      • afterDeploymentValidation

        public void afterDeploymentValidation​(@Observes
                                              javax.enterprise.inject.spi.AfterDeploymentValidation event,
                                              javax.enterprise.inject.spi.BeanManager manager)