Package com.tangosol.coherence.dslquery
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 constructingQueryPlus.Dependencies
implementations forQueryPlus
.
-
-
Constructor Summary
Constructors Constructor Description DependenciesHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static QueryPlus.Dependencies
newInstance(PrintWriter writer, InputStream inputStream, CoherenceQueryLanguage language, String[] asArgs)
Create a new instance ofQueryPlus.Dependencies
.static void
usage(PrintWriter writer)
Print the command line usage message to the specified writer.
-
-
-
Method Detail
-
newInstance
public static QueryPlus.Dependencies newInstance(PrintWriter writer, InputStream inputStream, CoherenceQueryLanguage language, String[] asArgs)
Create a new instance ofQueryPlus.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 outputinputStream
- the InputStream that will be used to supply input to QueryPlusasArgs
- the command line arguments to use to configure the dependencieslanguage
- the instance of {link CoherenceQueryLanguage} to be used by QueryPlus- 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
- thePrintWriter
to print the usage message to
-
-