public static void clearDefaultBusForAnyClassLoader ( final Bus bus ) { synchronized ( classLoaderBusses ) { for ( final Iterator < Bus > iterator = classLoaderBusses . values ( ) . iterator ( ) ; iterator . hasNext ( ) ; ) { Bus itBus = iterator . next ( ) ; if ( bus == null || itBus == null || bus . equals ( itBus ) ) { iterator . remove ( ) ; } } } }
Removes a bus from being the default bus for any classloader