retrieve all interfaces in jar static possible

  • Thread starter Petterson Mikael
  • Start date
P

Petterson Mikael

Hi,

I am curious to know if it is possible to extract all interfaces (
including methods and fields) from my jar. I know of refelection but
AFAIK the class has to be loaded in the jvm to use reflection on it.
True? Is there a static possiblity?

If no static possibility then will all my classes in jar be loaded when
I start my jvm ( java -jar myapp.jar). Is it possible to 'extract' all
classes ( to be put in a list) and run refelction on them?

Cheers,

//Mikael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,151
Latest member
JaclynMarl
Top