public boolean addMessagingClientFactory ( IMessagingClientFactory factory ) { final String type = factory . getType ( ) ; this . logger . fine ( "Adding messaging client factory: " + type ) ; final boolean result = this . factories . putIfAbsent ( type , factory ) == null ; if ( result ) notifyListeners ( factory , true ) ; return result ; }
Adds a messaging client factory to this registry unless a similar one was already registered .