I have a interface
List<object> getData(string classname);
Now my getData needs to get the data from a data source and populate the class object whose class name is "classname". One of the ways to create the object is to use activator.createInstance. But creating 1 million objects at runtime would mean a lot of performance overhead. Is there a workaround for this problem by using generics etc.