code: public void configureFactory(Class<?> clazz) {
          ConnectionConfiguration connectionConfiguration = resolveConnectionConfiguration(clazz);
          if (connectionConfiguration == null) {
              return;
          }
          connectionFactory.setHost(connectionConfiguration.host());
          connectionFactory.setVirtualHost(connectionConfiguration.virtualHost());
          connectionFactory.setPort(connectionConfiguration.port());
          connectionFactory.setConnectionTimeout(connectionConfiguration.timeout());
          connectionFactory.setRequestedHeartbeat(connectionConfiguration.heartbeat());
          connectionFactory.setUsername(connectionConfiguration.username());
          connectionFactory.setPassword(connectionConfiguration.password());
          connectionFactory.setRequestedFrameMax(connectionConfiguration.frameMax());
      }
docs: Configures the connection factory supplied by dependency injection using the
  connection configuration annotated at the given class.
  
  @param clazz The class annotated with the connection configuration.