/** * Calculated class-path for the extension repository * @return Returns the classpath computed over the repository */ final public String getClassPath() { Collection<File> jars = getExtensionFiles(); StringBuilder sb = new StringBuilder(); for(File jar : jars) { sb.append(File.pathSeparator).append(jar.getAbsolutePath()); } return sb.toString(); }
/** * Calculated class-path for the extension repository * @return Returns the classpath computed over the repository */ final public String getClassPath() { Collection<File> jars = getExtensionFiles(); StringBuilder sb = new StringBuilder(); for(File jar : jars) { sb.append(File.pathSeparator).append(jar.getAbsolutePath()); } return sb.toString(); }
/** * Lists the URLs of all the extensions known to the repository * @return A URL list of all extensions in the repository */ final public List<URL> getExtensionURLs() { synchronized(extensionsLock) { if (extensions == null) { Collection<File> jars = getExtensionFiles(); extensions = new ArrayList<URL>(); for(File jar : jars) { try { extensions.add(jar.toURI().toURL()); } catch (MalformedURLException ex) { // Logger.getLogger(ExtensionsLocator.class.getName()).log(Level.SEVERE, null, ex); } } } } return extensions; }
/** * Lists the URLs of all the extensions known to the repository * @return A URL list of all extensions in the repository */ final public List<URL> getExtensionURLs() { synchronized(extensionsLock) { if (extensions == null) { Collection<File> jars = getExtensionFiles(); extensions = new ArrayList<URL>(); for(File jar : jars) { try { extensions.add(jar.toURI().toURL()); } catch (MalformedURLException ex) { // Logger.getLogger(ExtensionsLocator.class.getName()).log(Level.SEVERE, null, ex); } } } } return extensions; }