Package org.jboss.weld.bootstrap.event
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 Summary
Modifier and TypeMethodDescription<T> WeldBeanConfigurator<T>addBean()Obtain aWeldBeanConfigurator, an extended version ofBeanConfigurator.Obtain aInterceptorConfiguratorto configure a newInterceptor.Methods inherited from interface jakarta.enterprise.inject.spi.AfterBeanDiscovery
addBean, addContext, addDefinitionError, addObserverMethod, addObserverMethod, getAnnotatedType, getAnnotatedTypes
-
Method Details
-
addInterceptor
InterceptorConfigurator addInterceptor()Obtain aInterceptorConfiguratorto configure a newInterceptor.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
Obtain aWeldBeanConfigurator, an extended version ofBeanConfigurator.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:
addBeanin interfacejakarta.enterprise.inject.spi.AfterBeanDiscovery- Returns:
- a configurator to configure custom new bean
-