Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

help loading classes with the Class class

  Asked By: Holly    Date: Aug 22    Category: Java    Views: 938
  

I would like to create an application that will dynamicly load class
files.. I don't understand how I can create a newInstance(Object[]
initargs) method... How do I call this method properly? How does one
play with the the methods of that class that is loaded? I fully
understand the argument that goes into the newInstance method but
what
variable well it go to? How does this come to play with a new object?

I know that Object o =
java.lang.reflect.Constructor.newInstance(objectArray); but how does
it come to play with the getConstructors() method?

well I think my problem is that I don't see enough code using the Class
class or the ClassLoader class..

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on help loading classes with the Class class Or get search suggestion and latest updates.




Tagged: