Class PluginSupportUtil


  • public class PluginSupportUtil
    extends Object
    Author:
    Pavel.Sher Date: 03.04.2009
    • Constructor Detail

      • PluginSupportUtil

        public PluginSupportUtil()
    • Method Detail

      • switchClassLoader

        public static void switchClassLoader​(@NotNull
                                             Class clazz,
                                             @NotNull
                                             Runnable runnable)
        Executes runnable with context classloader set to classloader used to load specified class. This is useful if code in runnable tries to find a class of a plugin by name.
        Parameters:
        runnable - runnable to execute