Get all instances of a given class found by entering its name using Java reflection
09:45 21 Feb 2011

Is it possible to get all instances of a class by entering this class's name as a string?

Something like this?

var instances = Reflection.findClass("com.someone.MyClass").getInstances();
java reflection instance