Each REM plugin has its server-side classes loaded in a child ClassLoader
with REM’s main ClassLoader
as its parent.
By default, this is a simple URLClassLoader
which delegates to REM’s class loader first before attempting to load a class from the plugin itself.
If your plugin needs to use a different version of a third-party library that is bundled with REM, it must specify that it requires the plugin-first class loader. This reverses the delegation order so that your plugin’s class loader will be checked first before delegating to REM’s class loader.
1 |
Open your plugin’s For example:
|
---|---|
2 |
Rebuild your plugin and install it into REM. Your plugin’s classes will now take precedence over those bundled with REM. |