Discussion:
[jboss-user] [Javassist] - Find existing classes?
Melissa Dale
2013-05-26 01:36:21 UTC
Permalink
Melissa Dale [https://community.jboss.org/people/mdale] created the discussion

"Find existing classes?"

To view the discussion, visit: https://community.jboss.org/message/819534#819534

--------------------------------------------------------------
Is there a way to use javassist to find a list of existing java classes in the system search path? I know you can use ".getDefault()" to return the system's default search path, is there a way list the classes on this search path without knowing the class names.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/819534#819534]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]
Robby Cornelissen
2013-05-27 11:17:15 UTC
Permalink
Robby Cornelissen [https://community.jboss.org/people/robby.cornelissen] created the discussion

"Re: Find existing classes?"

To view the discussion, visit: https://community.jboss.org/message/819631#819631

--------------------------------------------------------------
I don't think javassist provides for this, but the following library should get you there: https://code.google.com/p/reflections/ https://code.google.com/p/reflections/
Alternatively, you could just use the class loader to load the class files as resources from the classpath.
--------------------------------------------------------------

Reply to this message by going to Community
[https://community.jboss.org/message/819631#819631]

Start a new discussion in Javassist at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2062]
Loading...