Interface RuleSetBuilder<C extends RuntimeContext<C>>

Type Parameters:
C - Represents the type of the RuntimeContext.
All Superinterfaces:
Environment, FluentEnvironment<RuleSetBuilder<C>>

public interface RuleSetBuilder<C extends RuntimeContext<C>> extends FluentEnvironment<RuleSetBuilder<C>>
`RuleSetBuilder` is an interface intended for building and appending rules to the current runtime context.
  • Method Details

    • newRule

      RuleBuilder<C> newRule(String name)
      Creates a new rule with the provided name.
      Parameters:
      name - rule name
      Returns:
      a new rule builder
    • newRule

      RuleBuilder<C> newRule()
      Creates a new unnamed rule.
      Returns:
      a new rule builder
    • build

      C build()

      Builds and appends previously created rules to the current context.

      Returns:
      the current context after appending new rules
    • getContext

      C getContext()

      Returns the builder's context.

      Returns:
      the current context
    • getClassLoader

      ClassLoader getClassLoader()
      Returns the current ClassLoader associated with this builder. By default, each builder inherits the class loader from the getContext() instance.
      Returns:
      The current ClassLoader.