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 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 by BeforeBeanDiscovery.addAnnotatedType(AnnotatedType, String) or null 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: