title: Looking for a working example to use a custom ConsumerAwareRebalanceListener in Spring Kafka 2.1.0
body: <p>According to the docs:</p>
  
  <blockquote>
    <p>ContainerProperties has a property consumerRebalanceListener which
    takes an implementation of the Kafka client’s
    ConsumerRebalanceListener interface. If this property is not provided,
    the container will configure a simple logging listener that logs
    rebalance events under the INFO level. The framework also adds a
    sub-interface ConsumerAwareRebalanceListener [...]</p>
  </blockquote>
  
  <p>However there doesn't seem to be an injection point or a lifecycle phase to actually assign custom rebalance listeners to <code>ContainerProperties</code>.</p>
  
  <p>In my case I am using auto-configuration and the beans are primarily provided by <code>KafkaAnnotationDrivenConfiguration</code> and <code>KafkaAutoConfiguration</code>.</p>
  
  <p>Unlike many Spring classes and components, there's no way to set a custom rebalance listener by defining a bean of a certain type, and the only option seems to be hacking and subclassing existing beans.</p>
  
  <p>Or is there something that I am missing here?</p>