Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Java
Confused about class loaders
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Matthew Keene, post: 561309"] Right, I think I understand. So does this mean that if I create the URLClassLoader with a null parent that the system will be forced to use my class loader and will therefore inherit the classpath associated with my class loader (in this case I would probably add the libraries from the original class path into the new class loader). Is there any reason I'm not aware of that this would be a bad idea ? I'm trying to write a framework that will allow for custom functionality to be plugged in at various points of the processing. Because I don't know from the outset what the requirements of these plugins will be (and because I don't directly have control of the system classpath - don't ask) I'm trying to specify additional libraries in the config file which defines the plugin and load them dynamically when I load the plugin. Regex was just a simple example, in fact the most common example will be JDBC drivers. Thanks very much for your help so far. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Java
Confused about class loaders
Top