private void stopAllServersAndRemoveCamelContext ( CamelContext camelContext ) { log . debug ( "Stopping all servers associated with {}" , camelContext ) ; List < SingleBusLocatorRegistrar > registrars = locatorRegistrar . getAllRegistars ( camelContext ) ; registrars . forEach ( registrar -> registrar . stopAllServersAndRemoveCamelContext ( ) ) ; }
Stops all servers linked with the current camel context