src/share/classes/org/openjdk/jigsaw/Library.java

Print this page

        

*** 279,288 **** --- 279,325 ---- */ public abstract void install(Resolution res, boolean verifySignature) throws ConfigurationException, IOException, SignatureException; /** + * Remove one or more modules from this library. + * + * @param mids + * The module identifiers + * + * @return A list of IOExceptions, if any, that were encountered when + * removing the actual content of the given modules + * + * @throws ConfigurationException + * If the configuration of any root modules in the library + * require any of the given modules + * + * @throws IOException + * If an I/O error occurs while accessing the module library + */ + public abstract List<IOException> remove(List<ModuleId> mids, boolean dry) + throws ConfigurationException, IOException; + + /** + * Forcibly remove one or more modules from this library. + * + * <p> No regard is given to configuration of any root modules in the + * library that may require any of the given modules. </p> + * + * @param mids + * The module identifiers + * + * @return A list of IOExceptions, if any, that were encountered when + * removing the actual content of the given modules + * + * @throws IOException + * If an I/O error occurs while accessing the module library + */ + public abstract List<IOException> removeForcibly(List<ModuleId> mids) + throws IOException; + + /** * Find a resource within the given module in this library. * * @param mid * The module's identifier *