I have a class that takes a List in the constructor;
public class MyClass {
private List<Structure> structures;
public MyClass(List<Structure> structures) {
this.structures = structures;
}
}
that I need to instantiate via reflection. How do I define the call to class.getConstructor() to find this?
Regards
This should work:
or
for Java 1.4.x or less