aboutsummaryrefslogtreecommitdiffstats
path: root/config-model/src/main/javacc
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-02-05 12:43:36 +0100
committerJon Bratseth <bratseth@oath.com>2018-02-05 12:43:36 +0100
commit5794c369b4dcfdc85163158d49788d6303bbf564 (patch)
tree065786cd1ca8d4e0852252ca4dacbe479e268520 /config-model/src/main/javacc
parentab84971140f1782c0c7a693dd45c324766094c7c (diff)
Use query profiles already read
Diffstat (limited to 'config-model/src/main/javacc')
-rw-r--r--config-model/src/main/javacc/SDParser.jj19
1 files changed, 12 insertions, 7 deletions
diff --git a/config-model/src/main/javacc/SDParser.jj b/config-model/src/main/javacc/SDParser.jj
index bf6376983a4..86b136a1dd2 100644
--- a/config-model/src/main/javacc/SDParser.jj
+++ b/config-model/src/main/javacc/SDParser.jj
@@ -65,24 +65,29 @@ import org.apache.commons.lang.StringUtils;
/**
* A search definition parser
*
- * @author <a href="mailto:bratseth@yahoo-inc.com">Jon S Bratseth</a> et.al.
+ * @author bratseth
*/
public class SDParser {
+
private DocumentTypeManager docMan = null;
- private ApplicationPackage app = MockApplicationPackage.createEmpty();
- private DeployLogger deployLogger = new BaseDeployLogger();
- private RankProfileRegistry rankProfileRegistry = new RankProfileRegistry();
+ private ApplicationPackage app;
+ private DeployLogger deployLogger;
+ private RankProfileRegistry rankProfileRegistry;
+ /** For testing only */
public SDParser(String input, DeployLogger deployLogger) {
this(new SimpleCharStream(input), deployLogger);
}
+ /** For testing only */
public SDParser(SimpleCharStream stream, DeployLogger deployLogger) {
- this(stream);
- this.deployLogger = deployLogger;
+ this(stream, deployLogger, MockApplicationPackage.createEmpty(), new RankProfileRegistry());
}
- public SDParser(SimpleCharStream stream, DeployLogger deployLogger, ApplicationPackage applicationPackage, RankProfileRegistry rankProfileRegistry) {
+ public SDParser(SimpleCharStream stream,
+ DeployLogger deployLogger,
+ ApplicationPackage applicationPackage,
+ RankProfileRegistry rankProfileRegistry) {
this(stream);
this.deployLogger = deployLogger;
this.app = applicationPackage;