Package org.jboss.weld.bootstrap.event
Interface WeldAfterBeanDiscovery
-
- All Superinterfaces:
AfterBeanDiscovery
- All Known Implementing Classes:
AfterBeanDiscoveryImpl
public interface WeldAfterBeanDiscovery extends 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
.-
Methods inherited from interface jakarta.enterprise.inject.spi.AfterBeanDiscovery
addBean, addContext, addDefinitionError, addObserverMethod, addObserverMethod, getAnnotatedType, getAnnotatedTypes
-
-
-
-
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 interfaceAfterBeanDiscovery
- Type Parameters:
T
- type of bean- Returns:
- a configurator to configure custom new bean
-
-