public interface AfterBeanDiscovery
| Modifier and Type | Method and Description |
|---|---|
<T> BeanConfigurator<T> |
addBean()
Creates a bean configurator to configure a new bean.
|
void |
addBean(Bean<?> bean)
Registering the bean with container.
|
void |
addContext(Context context)
Adds given context to the container.
|
void |
addDefinitionError(Throwable t)
Adds definition error.
|
<T> ObserverMethodConfigurator<T> |
addObserverMethod()
Creates an observer method configurator to define an observer method.
|
void |
addObserverMethod(ObserverMethod<?> observerMethod)
Registers the given observer method with container.
|
<T> AnnotatedType<T> |
getAnnotatedType(Class<T> type,
String id)
This will return the AnnotatedType including all changes applied by CDI Extensions.
|
<T> Iterable<AnnotatedType<T>> |
getAnnotatedTypes(Class<T> type) |
void addDefinitionError(Throwable t)
t - throwablevoid addBean(Bean<?> bean)
bean - new beanvoid addObserverMethod(ObserverMethod<?> observerMethod)
observerMethod - observer methodvoid addContext(Context context)
context - new context<T> AnnotatedType<T> getAnnotatedType(Class<T> type, String id)
T - type - id - the id of the AnnotatedType registered by BeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String)
or null for the one scanned<T> Iterable<AnnotatedType<T>> getAnnotatedTypes(Class<T> type)
<T> BeanConfigurator<T> addBean()
BeanConfigurator to configure a new bean.IllegalStateException - if used outside of the observer method's invocation<T> ObserverMethodConfigurator<T> addObserverMethod()
T - IllegalStateException - if used outside of the observer method's invocationCopyright © 2021. All rights reserved.