ClassLoaderUtil
ClassLoaderUtil
contains just few methods, but we hope they will be of great use:)
loadClass
loads class dynamically. For that it uses class loaders from current thread, given class and ClassLoaderUtil
class, whatever works first.
getResource
and getResourceAsStream
loads resources, using all kinds of different class loaders, whatever works first.
getFullClassPath
returns classpath from given classloader and all its parents.
defineClass
is a gem;) It defines a class from raw data (byte array).
addClassPath
adds dynamically path to current classpath.