private void addWarpExtensionsDeployment ( WebArchive archive ) { final Collection < WarpDeploymentEnrichmentExtension > lifecycleExtensions = serviceLoader . get ( ) . all ( WarpDeploymentEnrichmentExtension . class ) ; for ( WarpDeploymentEnrichmentExtension extension : lifecycleExtensions ) { JavaArchive library = extension . getEnrichmentLibrary ( ) ; if ( library != null ) { archive . addAsLibrary ( library ) ; } extension . enrichWebArchive ( archive ) ; } }
Adds all Warp lifecycle extension packages to the archive