Skip to content

Commit

Permalink
moved function provider discovery to spi (#1606)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanlukas authored Jan 12, 2024
1 parent f583b71 commit b3f47ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
import java.util.stream.StreamSupport;
import org.camunda.feel.FeelEngine;
import org.camunda.feel.impl.JavaValueMapper;
import org.camunda.feel.impl.SpiServiceLoader;
import scala.collection.Iterable;
import scala.jdk.javaapi.CollectionConverters;

Expand All @@ -52,7 +53,7 @@ public FeelEngineWrapper() {
this.feelEngine =
new FeelEngine.Builder()
.customValueMapper(new JavaValueMapper())
.functionProvider(new FeelConnectorFunctionProvider())
.functionProvider(SpiServiceLoader.loadFunctionProvider())
.build();
this.objectMapper =
new ObjectMapper()
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
io.camunda.connector.feel.FeelConnectorFunctionProvider

0 comments on commit b3f47ce

Please sign in to comment.