Setting up listener only if configured accordingly, otherwise only creating the exchange. Also creating the queue when configured to be topic based. If fanout, then queue is created only if there is a listener configured for it.