Class QueryPlus.DependenciesHelper

java.lang.Object
com.tangosol.coherence.dslquery.QueryPlus.DependenciesHelper
Enclosing class:
QueryPlus

public static class QueryPlus.DependenciesHelper extends Object
The DependenciesHelper provides helper method for constructing QueryPlus.Dependencies implementations for QueryPlus.
  • Constructor Details

    • DependenciesHelper

      public DependenciesHelper()
  • Method Details

    • newInstance

      public static QueryPlus.Dependencies newInstance(PrintWriter writer, InputStream inputStream, CoherenceQueryLanguage language, String[] asArgs)
      Create a new instance of QueryPlus.Dependencies.

      If the JLine library is present on the classpath and the -nojline argument is not passed in the asArgs array then the specified InputStream will be wrapped in a jline.ConsoleReaderInputStream.

      Parameters:
      writer - the PrintWriter to use to display output
      inputStream - the InputStream that will be used to supply input to QueryPlus
      language - the instance of {link CoherenceQueryLanguage} to be used by QueryPlus
      asArgs - the command line arguments to use to configure the dependencies
      Returns:
      a new instance of Dependencies
    • usage

      public static void usage(PrintWriter writer)
      Print the command line usage message to the specified writer.
      Parameters:
      writer - the PrintWriter to print the usage message to