To all -- I'm probably at best a new guy here, trying to wrap my head around scala, and I find I need to do the following:
- Assume I have a scala class on disk somehwere referenced in my classpath.
- I have a scala application that wants to dynamically load this class and call its constructor
- Once I have that class reference, I can use it to set up values in other classes and objects.
In Java, I'd use the Java class loader and create a new instance whereupon I'd call its constructor. What is the right way to do this in Scala?