code: public Weld addBeanDefiningAnnotations(Class<? extends Annotation>... annotations) {
          for (Class<? extends Annotation> annotation : annotations) {
              this.extendedBeanDefiningAnnotations.add(annotation);
          }
          return this;
      }
docs: Registers annotations which will be considered as bean defining annotations.
  
  NOTE - If used along with {@code <trim/>} bean archives and/or with Weld configuration key
  {@code org.jboss.weld.bootstrap.vetoTypesWithoutBeanDefiningAnnotation}, these annotations will be ignored.
  
  @param annotations annotations which will be considered as Bean Defining Annotations.
  @return self