/** * Returns <code>true</code> if the specified file is in the extension's classloader path. * @param file file whose presence in the extensions path will be checked. * @return <code>true</code> if the specified file is in the extension's classloader path, <code>false</code> otherwise. */ public static boolean isInExtensionsPath(AbstractFile file) {return loader.contains(file);}
/** * Adds the specified <code>file</code> to the class loader's classpath. * <p> * Note that the file will <b>not</b> be added if it's already in the classpath. * </p> * @param file file to add the class loader's classpath. * @throws IllegalArgumentException if <code>file</code> is not browsable. */ public void addFile(AbstractFile file) { // Makes sure the specified file is browsable. if(!file.isBrowsable()) throw new IllegalArgumentException(); // Only adds the file if it's not already there. if(!contains(file)) files.add(file); }