/** Unlike other implementations of LoaderRepository, this method does * nothing but ask the UnifiedClassLoader3 to load the class as UCL3s * do not use this method. */ public Class<?> loadClass(String name, boolean resolve, ClassLoader cl) throws ClassNotFoundException { RepositoryClassLoader rcl = getRepositoryClassLoader(cl, name); return rcl.loadClass(name, resolve); }
/** Unlike other implementations of LoaderRepository, this method does * nothing but ask the UnifiedClassLoader3 to load the class as UCL3s * do not use this method. */ public Class loadClass(String name, boolean resolve, ClassLoader cl) throws ClassNotFoundException { RepositoryClassLoader rcl = getRepositoryClassLoader(cl, name); return rcl.loadClass(name, resolve); }
/** * Loads a class from the repository, using the classloaders that were * registered before the given classloader. * * @param stop consult all the classloaders registered before this one * in an attempt to load a class * @param className name of the class to load * @return loaded class instance * @throws ClassNotFoundException if none of the consulted classloaders were * able to load the requested class */ public Class loadClassBefore(ClassLoader stop, String className) throws ClassNotFoundException { RepositoryClassLoader stopAt = getRepositoryClassLoader(stop, className); return stopAt.loadClassBefore(className); }
/** * Loads a class from the repository, using the classloaders that were * registered before the given classloader. * * @param stop consult all the classloaders registered before this one * in an attempt to load a class * @param className name of the class to load * @return loaded class instance * @throws ClassNotFoundException if none of the consulted classloaders were * able to load the requested class */ public Class<?> loadClassBefore(ClassLoader stop, String className) throws ClassNotFoundException { RepositoryClassLoader stopAt = getRepositoryClassLoader(stop, className); return stopAt.loadClassBefore(className); }