@ Override public boolean isCDIEnabled ( String bdaId ) { boolean hasBeans = false ; //the top level isCDIEnabled can fail faster if ( isCDIEnabled ( ) ) { Boolean hasBeansBoolean = cdiStatusMap . get ( bdaId ) ; if ( hasBeansBoolean == null ) { WebSphereBeanDeploymentArchive bda = deploymentDBAs . get ( bdaId ) ; if ( bda == null ) { // turns out that JAXWS create modules dynamically at runtime. That should be the only way // that there is no bda for a valid module/bda id. At the moment, CDI is not supported in // a module unless it exists at startup. hasBeans = false ; } else { hasBeans = isCDIEnabled ( bda ) ; } } else { hasBeans = hasBeansBoolean ; } } return hasBeans ; }
Does the specified BDA or any of BDAs accessible by it have any beans or an extension which might add beans .