/** * Adds an explict classloader for a given service path and name.<br> * Loaders are kept in a linked list for each path and name combination. * Setting a classloader performs a push, clearing a pop. * Thus, removing a loader activates the previously set loader, if any. * This allows activation and deactivation as it used in OSGi, for example. * * @param servicePath the service path * @param serviceName the service name * @param classLoader the classloader, null if remove */ public static void addExplicitClassLoader(String servicePath, String serviceName, ClassLoader classLoader) { INSTANCE.addExplicitClassLoaderImpl(servicePath, serviceName, classLoader); }