Does MPS use Custom Class Loader?

Hello All,

Does MPS use Custom Class Loader? "By debugging i saw it is using com.intellij.util.lang.UrlClassLoader class loader"
Can you please provide me any link which will give me a basic overview of class loading in MPS. Struggling with class loader issues while parsing xml file for different parser.
1 comment
MPS creates custom class loaders for languages and some solutions. (see ModuleClassLoader)

It uses custom delegation model to load classes from modules. In a few words: if module A depends on module B, then the ModuleClassLoader of the module A tries asking the ModuleClassLoader of the module B for classes.
Also there is a parent "root" classloader (com.intellij.util.lang.UrlClassLoader), which is set by the idea platform as a context class loader in the main thread. Is is also asked for classes by any ModuleClassLoader.
0

Please sign in to leave a comment.