private Handler < AsyncResult < String > > createRedeployHandler ( final JsonObject deploymentInfo , final CountDownLatch latch ) { return new Handler < AsyncResult < String > > ( ) { @ Override public void handle ( AsyncResult < String > result ) { if ( result . failed ( ) ) { log . error ( result . cause ( ) ) ; latch . countDown ( ) ; } else { addMappedDeployment ( result . result ( ) , deploymentInfo , new Handler < AsyncResult < String > > ( ) { @ Override public void handle ( AsyncResult < String > result ) { latch . countDown ( ) ; } } ) ; } } } ; }
Creates a redeploy handler .