Vanquish39 0 Newbie Poster

How can I rewrite this with java config?

<int-kafka:outbound-channel-adapter
            id="mainOutboundChannelAdapter"
            kafka-producer-context-ref="kafkaProducerContext"
            channel="mainOutboundTopicChanel">
    </int-kafka:outbound-channel-adapter>