Package dev.cel.runtime
Class CelRuntimeFactory
- java.lang.Object
-
- dev.cel.runtime.CelRuntimeFactory
-
public final class CelRuntimeFactory extends java.lang.ObjectHelper class to construct newCelRuntimeinstances.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CelRuntimeBuilderplannerRuntimeBuilder()Create a new builder for constructing aCelRuntimeinstance.static CelRuntimeBuilderstandardCelRuntimeBuilder()Create a new builder for constructing aCelRuntimeinstance.
-
-
-
Method Detail
-
standardCelRuntimeBuilder
public static CelRuntimeBuilder standardCelRuntimeBuilder()
Create a new builder for constructing aCelRuntimeinstance.Note, the
CelOptions.current(), standard CEL function libraries, and linked message evaluation are enabled by default.
-
plannerRuntimeBuilder
public static CelRuntimeBuilder plannerRuntimeBuilder()
Create a new builder for constructing aCelRuntimeinstance.The
ProgramPlannerarchitecture provides key benefits over thestandardCelRuntimeBuilder():- Performance: Programs can be cached for improving evaluation speed.
- Parsed-only expression evaluation: Unlike the runtime returned by
standardCelRuntimeBuilder(), which only supported evaluating type-checked expressions, this architecture handles both parsed-only and type-checked expressions.
-
-