public void introduceServiceToTransports ( Iterator < ? extends BindingDescriptorRegistrationListener > transports ) { while ( transports . hasNext ( ) ) { BindingDescriptorRegistrationListener t = transports . next ( ) ; boolean eventTransport = t instanceof EventTransport ; boolean includedEventTransport = false ; if ( eventTransport ) { // if it's an event transport then we only want to notify if we've been told that the developer wanted to // bind to this particular transport (since you can have >1 instance of the event transport currently) if ( eventTransports != null && eventTransports . contains ( t ) ) { includedEventTransport = true ; } } if ( ! eventTransport || includedEventTransport ) { for ( BindingDescriptor bindingDescriptor : getBindingDescriptors ( ) ) { t . notify ( bindingDescriptor ) ; } } } }
Exports each binding descriptor to the supplied collection of transports