Package ru.ewc.decita

Class DecitaFacade

java.lang.Object
ru.ewc.decita.DecitaFacade

public final class DecitaFacade extends Object
I am the facade for the Decita library. My main responsibility is to provide a single entry point for the library users.
Since:
0.3.1
  • Constructor Details

    • DecitaFacade

      public DecitaFacade(Supplier<Locators> tables)
      Ctor.
      Parameters:
      tables - The function that provides a fresh set of uncomputed decision tables.
    • DecitaFacade

      public DecitaFacade(Supplier<Locators> tables, Locators locators)
      Ctor.
      Parameters:
      tables - The function that provides a fresh set of uncomputed decision tables.
      locators - The basic set of Locator used to obtain data from the system.
  • Method Details

    • decisionFor

      public Map<String,String> decisionFor(String table, Locators request)
      Decides on the outcome of the table with the given name.
      Parameters:
      table - The name of the table to decide on.
      request - The request to decide on.
      Returns:
      The outcome of the decision.