Migrate joor Java API to java

Apache 2.0

The joor language was removed in Camel 4.23; it was renamed to java in 4.3 and the old name is now gone. Renames the removed joor(...) builder methods to the equivalent java(...) overloads, and changes the removed JoorExpression, JoorLanguage and @Joor annotation types to JavaExpression, JavaLanguage and @Java. The joor and java languages declare identical options, so this is a one-to-one rename. A static import of Builder.joor is rewritten when it is used; one that is shadowed by the inherited BuilderSupport.joor inside a RouteBuilder was already unused and is left behind. BeanFactoryDefinition.joor(String) is deliberately left alone: unlike the builder methods it still exists in 4.23. The camel-joor dependency is also left in place, since the java language itself ships from that artifact.

org.apache.camel.upgrade.camel423.migrateJoorJavaApi
mod run . --recipe=org.apache.camel.upgrade.camel423.migrateJoorJavaApi

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Change method name org.apache.camel.builder.Builder joor(String) to java
  2. Change method name org.apache.camel.builder.Builder joor(String, Class) to java
  3. Change method name org.apache.camel.builder.BuilderSupport joor(String) to java
  4. Change method name org.apache.camel.builder.BuilderSupport joor(String, Class) to java
  5. Change method name org.apache.camel.builder.ExpressionClause joor(String) to java
  6. Change method name org.apache.camel.builder.ExpressionClause joor(String, Class) to java
  7. Change method name org.apache.camel.builder.ExpressionClauseSupport joor(String) to java
  8. Change method name org.apache.camel.builder.ExpressionClauseSupport joor(String, Class) to java
  9. Change method name org.apache.camel.builder.LanguageBuilderFactory joor() to java
  10. Change type JoorExpression to JavaExpression
  11. Change type JoorLanguage to JavaLanguage
  12. Change type Joor to Java