157 /** 158 * Returns a URL to a resource with the given name in a module that is 159 * defined to the given class loader. 160 */ 161 URL findResource(ClassLoader cl, String moduleName, String name) throws IOException; 162 163 /** 164 * Returns the Packages for the given class loader. 165 */ 166 Stream<Package> packages(ClassLoader cl); 167 168 /** 169 * Define a Package of the given name and module by the given class loader. 170 */ 171 Package definePackage(ClassLoader cl, String name, Module module); 172 173 /** 174 * Invokes Long.fastUUID 175 */ 176 String fastUUID(long lsb, long msb); 177 } | 157 /** 158 * Returns a URL to a resource with the given name in a module that is 159 * defined to the given class loader. 160 */ 161 URL findResource(ClassLoader cl, String moduleName, String name) throws IOException; 162 163 /** 164 * Returns the Packages for the given class loader. 165 */ 166 Stream<Package> packages(ClassLoader cl); 167 168 /** 169 * Define a Package of the given name and module by the given class loader. 170 */ 171 Package definePackage(ClassLoader cl, String name, Module module); 172 173 /** 174 * Invokes Long.fastUUID 175 */ 176 String fastUUID(long lsb, long msb); 177 178 /** 179 * Invalidate package access cache 180 */ 181 void invalidatePackageAccessCache(); 182 } |