tuxji commented on a change in pull request #532:
URL: https://github.com/apache/daffodil/pull/532#discussion_r617676247



##########
File path: 
daffodil-tdml-lib/src/main/scala/org/apache/daffodil/tdml/TDMLRunner.scala
##########
@@ -477,7 +476,13 @@ abstract class TestCase(testCaseXML: NodeSeq, val parent: 
DFDLTestSuite)
   lazy val tdmlDFDLProcessorFactory: AbstractTDMLDFDLProcessorFactory = {
     import scala.language.existentials
 
-    val className = 
"org.apache.daffodil.tdml.processor.TDMLDFDLProcessorFactory"
+    // tdmlImplementation is a tunable choice with three values.
+    val className = tunableObj.tdmlImplementation match {
+      // Right now daffodil and ibm use the same ProcessFactory name
+      case "daffodil" | "ibm" => 
"org.apache.daffodil.tdml.processor.TDMLDFDLProcessorFactory"
+      case "daffodil-runtime2" => 
"org.apache.daffodil.tdml.processor.Runtime2TDMLDFDLProcessorFactory"
+      case other => Assert.invariantFailed("'%s' not valid for 
tdmlImplementation".format(other))

Review comment:
       I had already mentioned my first idea in the runtime2 ToDos ascii page 
but not this second idea.  I'll submit a pull request to update the ToDos.




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to