I am sorry you find XML configuration "annoying".
We are working on improving the JavaConfig (@Configuration
) experience for Spring Integration.
You can currently wire up any endpoint with JavaConfig today, but it's not pretty; endpoints can be wired with a MessageDrivenConsumer
(or PollingConsumer
) together with the appropriate MessageHandler
. You would have to dig into the ConsumerEndpointFactoryBean
and the XML parsers for full details; most components require more than one bean definition.
Like I said, we are working on it; we currently have an open Pull Request for a gateway and there is a Java DSL underway in the extensions repo but it is a work in process, as are the Scala and Groovy DSLs.
EDIT:
Spring Integration 4.0 makes it much easier to use @Configuration
.
See the recent webinar.