public void setAppServerDefaultDeploymentScanEnabled ( boolean enabled ) throws Exception { final String [ ] addressArr = { SUBSYSTEM , DEPLOYMENT_SCANNER , SCANNER , "default" } ; final Address address = Address . root ( ) . add ( addressArr ) ; final ModelNode req = createWriteAttributeRequest ( "scan-enabled" , Boolean . toString ( enabled ) , address ) ; final ModelNode response = execute ( req ) ; if ( ! isSuccess ( response ) ) { throw new FailureException ( response ) ; } return ; }
Enabled or disables the default deployment scanner .