Package com.tangosol.coherence.dslquery
Class QueryPlus.DependenciesHelper
java.lang.Object
com.tangosol.coherence.dslquery.QueryPlus.DependenciesHelper
- Enclosing class:
QueryPlus
The DependenciesHelper provides helper method for constructing
QueryPlus.Dependencies
implementations for QueryPlus
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.
-
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 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 QueryPluslanguage
- the instance of {link CoherenceQueryLanguage} to be used by QueryPlusasArgs
- the command line arguments to use to configure the dependencies- Returns:
- a new instance of Dependencies
-
usage
Print the command line usage message to the specified writer.- Parameters:
writer
- thePrintWriter
to print the usage message to
-