public interface AfterBeanDiscovery
Modifier and Type | Method and Description |
---|---|
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.
|
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)
Get an Iterable of all AnnotatedTypes which implement the given
|
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
- type
- Copyright © 2017. All rights reserved.