is there any way by which i can implement the singleton
pattern on a reflected class?
i'm obtaining the class name as a
string from a properties file and using Class.forName(String) to instantiate a Class object by that name. is there a way to call a static method implemented in this class (e.g. getInstance(), to implement the singleton pattern )?
rite now i'm using the work-around of calling the newInstance method of Class and then typecasting it to the class name, thus making my static
getInstance method redundant.