@ Override public final boolean skipCreatingBda ( CDIArchive archive ) { //only skip this if it is a leaf archive boolean skip = isImplicitBeanArchivesScanningDisabled ( archive ) ; skip = skip && ( archive . getBeansXml ( ) == null ) ; skip = skip && ( ! ( archive . getType ( ) == ArchiveType . WEB_MODULE ) ) ; return skip ; }
Determine whether this jar is completely ignored by CDI so no need to create bda for it . The jar will be ignored if it does not contain beans . xml and in the server . xml implicit bean archive scanning is disabled .