Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Hi, I am attempting to write a program whereby I need to have a factory which reads a mapping file of id versus classname. After retrieving the class name I need to call the non default constructor of the class. The ClassLoader.loadClass does not take any parameters. Apart from the idea of going via Reflection and querying all the constructors to get the exact match with the parameter types passed Is there any way I can do this? Thanks and Regards Replies: |
Sponsored Links
|