private void unregisterEmbeddedServer ( ExtensionContext context , boolean staticMode ) { boolean registeredAsStatic = findInStore ( context , SERVER_RUNNER_STATIC_MODE ) ; if ( registeredAsStatic == staticMode ) { try { EmbeddedServerRunner serverAdapter = findEmbeddedServerAdapterInStore ( context ) ; serverAdapter . afterAll ( ) ; } finally { removeEmbeddedServerAdapterFromStore ( context ) ; } } }
Stop and remove from the store the started embedded server .