I have an Action trait that many different classes, $ {any} Action, expand. I would like to create a class that is responsible for instantiating these Action objects in the sense that it will not know which of the expanding objects it will build until a String with a name is passed. I want him to take the class name and then build an object based on this line.
I am having trouble finding a short / recent answer regarding this simple reflection. I was hoping to get some suggestions regarding a place to see, or a smooth way to do it.
source
share