Class CelRuntimeFactory


  • public final class CelRuntimeFactory
    extends java.lang.Object
    Helper class to construct new CelRuntime instances.
    • Method Detail

      • standardCelRuntimeBuilder

        public static CelRuntimeBuilder standardCelRuntimeBuilder()
        Create a new builder for constructing a CelRuntime instance.

        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 a CelRuntime instance.

        The ProgramPlanner architecture provides key benefits over the standardCelRuntimeBuilder():

        • 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.