Skip to content

Commit ea7c160

Browse files
committed
Bug 36431400 - [36242646->24.09] javadoc: update the QueryPlus and CacheFactory.main javadoc to indicate that JLine integration is supported
RQ: job.9.20240322051551.22624 [git-p4: depot-paths = "//dev/coherence-ce/main/": change = 107821]
1 parent 69f5e39 commit ea7c160

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

prj/coherence-core/src/main/java/com/tangosol/coherence/dslquery/QueryPlus.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
/*
2-
* Copyright (c) 2000, 2022, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
66
*/
77
package com.tangosol.coherence.dslquery;
88

99
import com.oracle.coherence.common.util.Duration;
10+
1011
import com.tangosol.coherence.dslquery.queryplus.AbstractQueryPlusStatementBuilder;
1112
import com.tangosol.coherence.dslquery.queryplus.CommandsStatementBuilder;
1213
import com.tangosol.coherence.dslquery.queryplus.ExtendedLanguageStatementBuilder;
@@ -44,6 +45,12 @@
4445
/**
4546
* QueryPlus implements a simple command line processor for a sql like
4647
* language.
48+
* <p>
49+
* QueryPlus can use JLine for enhanced command-line editing capabilities,
50+
* such as having the up and down arrows move through the command history.
51+
* However, JLine is not required. QueryPlus supports JLine when the JLine 3.x library
52+
* is included in the QueryPlus JVM classpath. If JLine is not found,
53+
* a message displays and QueryPlus starts without JLine capabilities.
4754
*
4855
* @author djl 2009.08.31
4956
* @author jk 2014.01.02

prj/coherence-core/src/main/java/com/tangosol/net/CacheFactory.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
/*
2-
* Copyright (c) 2000, 2023, Oracle and/or its affiliates.
2+
* Copyright (c) 2000, 2024, Oracle and/or its affiliates.
33
*
44
* Licensed under the Universal Permissive License v 1.0 as shown at
55
* https://oss.oracle.com/licenses/upl.
66
*/
77

88
package com.tangosol.net;
99

10-
1110
import com.oracle.coherence.common.base.Blocking;
1211
import com.oracle.coherence.common.base.Lockable;
1312
import com.oracle.coherence.common.base.Logger;
1413

1514
import com.tangosol.net.cache.TypeAssertion;
15+
1616
import com.tangosol.net.security.LocalPermission;
1717

1818
import com.tangosol.run.xml.XmlElement;
@@ -34,9 +34,6 @@
3434
import java.util.Iterator;
3535
import java.util.List;
3636

37-
import java.util.function.Supplier;
38-
39-
4037
/**
4138
* Factory for the <b>Coherence&#8482;</b> cache product.
4239
* <p>
@@ -1068,6 +1065,12 @@ public static void setLoggingLevel(Integer ILevel)
10681065

10691066
/**
10701067
* Invoke the Coherence command line tool.
1068+
* <p>
1069+
* The Coherence command line tool can use JLine for enhanced command-line
1070+
* editing capabilities, such as having the up and down arrows move through
1071+
* the command history. However, JLine is not required. The Coherence command
1072+
* line tool supports JLine when the JLine 3.x library is included in the
1073+
* tool's JVM classpath.
10711074
*/
10721075
public static void main(String[] asArg)
10731076
throws Exception
@@ -1080,7 +1083,6 @@ public static void main(String[] asArg)
10801083
METHOD_MAIN.invoke(null, new Object[] {asArg});
10811084
}
10821085

1083-
10841086
// ----- constants ------------------------------------------------------
10851087

10861088
/**

0 commit comments

Comments
 (0)