Loading code dynamically in Java

26 Aug 2008
Posted by cgp

There's a lot of ways this is referred to in the java world but they all essentially mean the above. The method described at dzone is good, but it really isn't runtime unless you provide a method for loading a class (which was probably beyond scope)

After really reading through what I could find on the web though, the consensus seems to be that reloading code is quirky and unpredictable. I don't like the idea of needing a custom loader either, it's all a bit overbearing when you compare it to something like scripting, so I'm using the scripting built into Java 6.

References

http://snippets.dzone.com/posts/show/4804