Babel :: Experimental :: Parent

Babel experimental modules such as Java API

License

License

GroupId

GroupId

io.xtech.babel
ArtifactId

ArtifactId

babel-experimental-parent
Last Version

Last Version

0.6.0
Release Date

Release Date

Type

Type

pom
Description

Description

Babel :: Experimental :: Parent
Babel experimental modules such as Java API
Project URL

Project URL

http://www.crossing-tech.com
Source Code Management

Source Code Management

https://github.com/Crossing-Tech/babel-experimental.git

Download babel-experimental-parent

How to add to project

<!-- https://jarcasting.com/artifacts/io.xtech.babel/babel-experimental-parent/ -->
<dependency>
    <groupId>io.xtech.babel</groupId>
    <artifactId>babel-experimental-parent</artifactId>
    <version>0.6.0</version>
    <type>pom</type>
</dependency>
// https://jarcasting.com/artifacts/io.xtech.babel/babel-experimental-parent/
implementation 'io.xtech.babel:babel-experimental-parent:0.6.0'
// https://jarcasting.com/artifacts/io.xtech.babel/babel-experimental-parent/
implementation ("io.xtech.babel:babel-experimental-parent:0.6.0")
'io.xtech.babel:babel-experimental-parent:pom:0.6.0'
<dependency org="io.xtech.babel" name="babel-experimental-parent" rev="0.6.0">
  <artifact name="babel-experimental-parent" type="pom" />
</dependency>
@Grapes(
@Grab(group='io.xtech.babel', module='babel-experimental-parent', version='0.6.0')
)
libraryDependencies += "io.xtech.babel" % "babel-experimental-parent" % "0.6.0"
[io.xtech.babel/babel-experimental-parent "0.6.0"]

Dependencies

There are no dependencies for this project. It is a standalone project that does not depend on any other jars.

Project Modules

There are no modules declared in this project.

Babel experimental

Build Status

Master: Build Status Coverage Status

This project contains future improvement of the Babel project:

  • Babel Camel Lambda : a java 8 DSL for Apache Camel

Those projects are still into prototyping or into test phase.

If you have any feedback or comment, please post it on the Babel google group: https://groups.google.com/forum/#!forum/babel-user

Babel Camel Lambda

Babel Camel Lambda is a DSL for Apache Camel provided for Java users

In order to use the Babel DSL for Camel with Java, add the following to your maven dependencies:

<dependency>
    <groupId>io.xtech.babel</groupId>
    <artifactId>babel-camel-lambda</artifactId>
    <version>BABEL_VERSION</version>
</dependency>

Then, you may create your route using the DSL

import io.xtech.babel.camel.lambda.RouteBuilder;

RouteBuilder routeBuilder = new RouteBuilder() {
    @Override
    public void configure() {
        //take messages from direct input, transforming their body into String
        from(source("direct:input")).as(String.class).
                //computes the lenght of the string
                processBody((str) -> str.length()).
                //routing the exchanges
                choice((w) -> {
                        //if the length is 3 to output1
                        w.when((O) -> O == 3).to(sink("mock:output1"));
                        //otherwise to output2
                        w.otherwise().to(sink("mock:output2"));
        });
    }
};
io.xtech.babel

Crossing-Tech SA

Versions

Version
0.6.0