javax.enterprise.inject.spi

Interface ProcessBeanAttributes<T>

  • Type Parameters:
    T - The class of the bean
    All Known Implementing Classes:
    ProcessBeanAttributesImpl


    public interface ProcessBeanAttributes<T>

    The container fires an event of this type for each enabled bean, interceptor or decorator deployed in a bean archive before registering the Bean object.

    No event is fired for New qualified beans.

    If any observer method of a ProcessBeanAttributes event throws an exception, the exception is treated as a definition error by the container.

    Since:
    1.1
    Author:
    Pete Muir
    • Method Detail

      • addDefinitionError

        void addDefinitionError(Throwable t)
        Registers a definition error with the container, causing the container to abort deployment after bean discovery is complete.
        Parameters:
        t - the error to add
        Throws:
        IllegalStateException - if called outside of the observer method invocation
      • veto

        void veto()
        Forces the container to ignore the bean.
        Throws:
        IllegalStateException - if called outside of the observer method invocation

Copyright © 2015. All Rights Reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14