Package javax.enterprise.inject.spi
Interface AfterBeanDiscovery
-
public interface AfterBeanDiscovery
Events that are fired after discovery bean process.- Version:
- $Rev: 1493261 $ $Date: 2013-06-15 00:05:07 +0200 (Sat, 15 Jun 2013) $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addBean(Bean<?> bean)
Registering the bean with container.void
addContext(Context context)
Adds given context to the container.void
addDefinitionError(java.lang.Throwable t)
Adds definition error.void
addObserverMethod(ObserverMethod<?> observerMethod)
Registers the given observer method with container.<T> AnnotatedType<T>
getAnnotatedType(java.lang.Class<T> type, java.lang.String id)
This will return the AnnotatedType including all changes applied by CDI Extensions.<T> java.lang.Iterable<AnnotatedType<T>>
getAnnotatedTypes(java.lang.Class<T> type)
Get an Iterable of all AnnotatedTypes which implement the given
-
-
-
Method Detail
-
addDefinitionError
void addDefinitionError(java.lang.Throwable t)
Adds definition error. Container aborts deployment after all observer methods are called.- Parameters:
t
- throwable
-
addBean
void addBean(Bean<?> bean)
Registering the bean with container.- Parameters:
bean
- new bean
-
addObserverMethod
void addObserverMethod(ObserverMethod<?> observerMethod)
Registers the given observer method with container.- Parameters:
observerMethod
- observer method
-
addContext
void addContext(Context context)
Adds given context to the container.- Parameters:
context
- new context
-
getAnnotatedType
<T> AnnotatedType<T> getAnnotatedType(java.lang.Class<T> type, java.lang.String id)
This will return the AnnotatedType including all changes applied by CDI Extensions.- Type Parameters:
T
-- Parameters:
type
-id
- the id of the AnnotatedType registered byBeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String)
ornull
for the one scanned- Returns:
- the AnnotatedType for the given type and id.
-
getAnnotatedTypes
<T> java.lang.Iterable<AnnotatedType<T>> getAnnotatedTypes(java.lang.Class<T> type)
Get an Iterable of all AnnotatedTypes which implement the given- Type Parameters:
T
-- Parameters:
type
-- Returns:
-
-