Hi guys - Given: A set of class objects returned by fctory methods, e.g. Factory.getInstance(). Requirement: Dynamic loading of these classes. Statement: In all cases, this requires a custom ClassLoader. Is the 'Statement' correct? Regards, Guy
I'm not sure what you're saying. Given a "set of class objects"? What are these, and how do they relate to the classes you want to load? Are these instances of the class Class? Instances of some other class, like maybe the one you want to load? In either of the above cases, it would seem you need to load the desired class before you can have any instances of that class, or of Class objects which represent your desired class. So I'm probably missing something here. Perhaps you could show a bit more of an example of what you're talking about?