spring-projects / spring-integration-extensions

The Spring Integration Extensions project provides extension components for Spring Integration
http://www.springintegration.org/
281 stars 266 forks source link

Java DSL: Lambdas for Namespace Factories #117

Closed artembilan closed 10 years ago

artembilan commented 10 years ago
artembilan commented 10 years ago

@garyrussell , review is welcome. But if you just say "OK", I'll merge it as is and go ahead with FunctionExpression and SubFlow. Thanks in advance.

garyrussell commented 10 years ago

Otherwise LGTM; however, I wonder how practical the DSL will be with Java 7 and below so perhaps Java 8 should be the minimum?

artembilan commented 10 years ago

so perhaps Java 8 should be the minimum?

From one side there are enough request for DSL samples in Java 7 style. From other side there is an idea to have XD modules (tamplates) based on this DSL. And one more argument is Reactor, which is more Java 8, but still support Java 6. At least 1.1.x. Reactor 2.0 is Java 7 minimal. XD should pay attention to that if we are going to upgrade to Reactor 2.0.

artembilan commented 10 years ago

Pushed.

Now all methods in the IntegrationFlows are .from(). Note: IntegrationFlowDefinition now has additional methods - .handleWithAdapter() to rely on the Adapters Lambda.

artembilan commented 10 years ago

Squeshed and merged