I have a property defined which is a comma seperated list of classes.
Each one of these classes extend a Class A and implement methods of class B.
What I want to do is for each class in this list is to use the Class.forName(className) and
create a instance of this class using class.newInstance().
I know how to do this.
But how would I invoke the methods on class A and Class B. Would I need to cast the object returned from class.newInstance() to A then invoke its method and then cast to the interface B and invoke its method
ie Object o = class.newInstance();
A objectA = (A) o;
B interfaceB = (B) o;