public void unregisterReceiver ( String receiverCode ) { // remove the receiver from the list for ( Iterator < InvocationDecoder > iter = _reclist . iterator ( ) ; iter . hasNext ( ) ; ) { InvocationDecoder decoder = iter . next ( ) ; if ( decoder . getReceiverCode ( ) . equals ( receiverCode ) ) { iter . remove ( ) ; } } // if we're logged on, clear out any receiver id mapping if ( _clobj != null ) { Registration rreg = _clobj . receivers . get ( receiverCode ) ; if ( rreg == null ) { log . warning ( "Receiver unregistered for which we have no id to code mapping" , "code" , receiverCode ) ; } else { _receivers . remove ( rreg . receiverId ) ; // Log.info("Cleared receiver " + StringUtil.shortClassName(decoder) + // " " + rreg + "."); } _clobj . removeFromReceivers ( receiverCode ) ; } }
Removes a receiver registration .