Java: Using Dynamically loaded classes
Posted
by Snigger
on Stack Overflow
See other posts from Stack Overflow
or by Snigger
Published on 2010-05-15T18:53:52Z
Indexed on
2010/05/15
19:04 UTC
Read the original article
Hit count: 179
Hi I'm new to java. I'm trying to use some dynamically loaded classes in my application. The application doesn't know classes , Just it try to load a class by name that its name came from input. It doesn't know class (So I can't use casting) but just needs to call some methods of that class (every class should have that methods). I thought about interfaces but I don't know how. How can I call those methods?
Thanks
© Stack Overflow or respective owner