Interface FluentEnvironment<X>

Type Parameters:
X - the type of the environment implementation that extends this interface, used to enable method chaining by returning the same type upon setting a property.
All Superinterfaces:
Environment
All Known Subinterfaces:
Knowledge, RuleBuilder<C>, RuleSession<S>, RuleSetBuilder<C>, RuleSetContext<C,R>, RuntimeContext<C>, StatefulSession, StatelessSession
All Known Implementing Classes:
AbstractSessionWrapper, KnowledgeWrapper

public interface FluentEnvironment<X> extends Environment
The FluentEnvironment interface extends the functionality of Environment to support fluent API style configuration by allowing properties to be set in a chainable manner.
  • Method Summary

    Modifier and Type
    Method
    Description
    set(String property, Object value)
    Sets the specified property to the given value.

    Methods inherited from interface org.evrete.api.Environment

    get, get, getPropertyNames
  • Method Details

    • set

      X set(String property, Object value)
      Sets the specified property to the given value.
      Specified by:
      set in interface Environment
      Parameters:
      property - the name of the property to set; should not be null.
      value - the new value for the property; the actual type is determined by the implementation and the property being set.
      Returns:
      the current instance of X to allow for method chaining.