Interface WeldAfterBeanDiscovery

All Superinterfaces:
jakarta.enterprise.inject.spi.AfterBeanDiscovery

public interface WeldAfterBeanDiscovery extends jakarta.enterprise.inject.spi.AfterBeanDiscovery
Represents an enhanced version of AfterBeanDiscovery.
Author:
Martin Kouba
See Also:
  • Method Details

    • addInterceptor

      InterceptorConfigurator addInterceptor()
      Obtain a InterceptorConfigurator to configure a new Interceptor.

      The configured interceptor is automatically added at the end of the observer invocation.

      Each call returns a new configurator instance.

      Returns:
      a configurator to configure a new interceptor
    • addBean

      <T> WeldBeanConfigurator<T> addBean()
      Obtain a WeldBeanConfigurator, an extended version of BeanConfigurator.

      The configurator behaves in the same manner as BeanConfigurator. Configured bean is added automatically at the end of the observer invocation.

      Each call returns new configurator instance.

      Specified by:
      addBean in interface jakarta.enterprise.inject.spi.AfterBeanDiscovery
      Returns:
      a configurator to configure custom new bean