I have an Scala application that contains several methods. I want to be able to store a list of a subset of those methods in a text file somewhere. When my application execute, I want it to read that text file execute the methods I have specified there. Any idea how to do that?
I know I can create list of functions in Scala (List[Int => Int], or something similar)that contains the method names, and then just iterate over that list. The problem is how do I dynamically create that list from the text file and get Scala to recognize I am trying to give it a method name, not just a plain text string.
Thanks.