Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions main-joor/README.adoc
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
== Camel Example Main jOOR

This example shows using the new jOOR language in the Camel DSL.
The jOOR language is very performant, as it is compiled once to Java code during startup (runtime).
This example shows using the `java` language in the Camel DSL, provided by the `camel-joor` component.
The language compiles the expression to Java once during startup (runtime), so it is very performant. It was
called the `joor` language until Camel renamed it to `java`; the DSL method is `java()`.

=== Build

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public void configure() throws Exception {
from("timer:foo?period={{myPeriod}}")
.bean(UserFactoryBean.class, "createUser")
.choice()
.when(joor("var user = bodyAs(MyUser); return user.getName() != null && user.getAge() > 21"))
.when(java("var user = bodyAs(MyUser); return user.getName() != null && user.getAge() > 21"))
.log("User ${body} can enter bar")
.otherwise()
.log("User ${body} cannot enter bar");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import static org.junit.jupiter.api.Assertions.assertTrue;

/**
* A unit test checking that Camel supports jOOR language in the Camel DSL.
* A unit test checking that Camel supports the java language (backed by jOOR) in the Camel DSL.
*/
class MainJOORTest extends CamelMainTestSupport {

Expand All @@ -41,7 +41,7 @@ public void configureContext(CamelContextConfiguration camelContextConfiguration
}

@Test
void should_support_joor_in_dsl() {
void should_support_java_in_dsl() {
NotifyBuilder notify = new NotifyBuilder(context).whenCompleted(10).create();
assertTrue(
notify.matches(20, TimeUnit.SECONDS), "10 messages should be completed"
Expand Down
Loading