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 ofAfterBeanDiscovery
.- Author:
- Martin Kouba
- See Also:
- WELD-2008
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> WeldBeanConfigurator<T>
addBean()
Obtain aWeldBeanConfigurator
, an extended version ofBeanConfigurator
.InterceptorConfigurator
addInterceptor()
Obtain aInterceptorConfigurator
to configure a newInterceptor
.
-
-
-
Method Detail
-
addInterceptor
InterceptorConfigurator addInterceptor()
Obtain aInterceptorConfigurator
to 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
<T> WeldBeanConfigurator<T> 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:
addBean
in interfacejakarta.enterprise.inject.spi.AfterBeanDiscovery
- Returns:
- a configurator to configure custom new bean
-
-