Class CommonContext

Object
CommonContext

public final class CommonContext extends Object
A logger with additional configuration that are coupled together widely in the code.
  • Constructor Details

    • CommonContext

      public CommonContext(Logger logger, Path modelDirectory)
      Creates a new CommonContext instance.
      Parameters:
      logger - The logger.
      modelDirectory - Directory where machine-learning models can be found.
  • Method Details

    • getLogger

      public Logger getLogger()
      The logger.
    • getModelDirectory

      public Path getModelDirectory()
      Directory where machine-learning models can be found.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object