public static void deregisterMessagingEngineListener ( final SibRaMessagingEngineListener listener , final String busName ) { final String methodName = "deregisterMessagingEngineListener" ; if ( TRACE . isEntryEnabled ( ) ) { SibTr . entry ( TRACE , methodName , new Object [ ] { listener , busName } ) ; } synchronized ( MESSAGING_ENGINE_LISTENERS ) { final Set listeners = ( Set ) MESSAGING_ENGINE_LISTENERS . get ( busName ) ; if ( listeners != null ) { listeners . remove ( listener ) ; if ( listeners . isEmpty ( ) ) { MESSAGING_ENGINE_LISTENERS . remove ( busName ) ; } } } if ( TRACE . isEntryEnabled ( ) ) { SibTr . exit ( TRACE , methodName ) ; } }
Deregisters a listener for active messaging engines on a bus .