An extension to Bootstrap which allows weld to perform type discovery as required by CDI 1.2. Each CDI 1.2 compatible
integrator should use this interface.
Application container initialization API for Weld.
To initialize the container you must call, in this order:

The resulting set is referred to as bean defining annotations hereafter.

Next, the integrator processes available archives according to these rules. The rules are exclusive.

If an archive:

contains the beans.xml file and the file does not contain the bean-discovery-mode
attribute, or

contains the beans.xml file and the value of the bean-discovery-mode attribute is set to
all

this archive is an explicit bean archive.

If an archive:

contains the beans.xml file and the bean-discovery-mode attribute is set to
annotated, or

does not contain the beans.xml file nor any implementation of the javax.enterprise.inject.spi.Extension interface but the
archive contains types annotated with a bean defining annotation or session beans

this archive is an implicit bean archive.

If an archive:

contains the beans.xml file and the bean-discovery-mode attribute is set to
none, or