/** * @see #open(URI) * @param uri a string representing URI */ public void open(String uri) throws IOException { open(URI.create(uri)); }
fileArchive.open(module.toURI()); // directory where rar is exploded Set<String> extensionList = InstalledLibrariesResolver.getInstalledLibraries(fileArchive);
public ConnectorDescriptor getConnectorDescriptorFromUri(String rarName, String raLoc) { try { String appName = rarName.substring(0, rarName.indexOf(ConnectorConstants.EMBEDDEDRAR_NAME_DELIMITER)); //String actualRarName = rarName.substring(rarName.indexOf(ConnectorConstants.EMBEDDEDRAR_NAME_DELIMITER) + 1); String appDeployLocation = ResourcesUtil.createInstance().getApplicationDeployLocation(appName); FileArchive in = ConnectorRuntime.getRuntime().getFileArchive(); in.open(new URI(appDeployLocation)); ApplicationArchivist archivist = ConnectorRuntime.getRuntime().getApplicationArchivist(); com.sun.enterprise.deployment.Application application = archivist.open(in); return application.getRarDescriptorByUri(raLoc); } catch (Exception e) { Object params[] = new Object[]{rarName, e}; _logger.log(Level.WARNING, "error.getting.connector.descriptor", params); } return null; }
fileArchive.open(module.toURI()); // directory where rar is exploded ConnectorRuntime runtime = ConnectorRuntime.getRuntime(); ClassLoader loader ;
archive.open(sourceDir.toURI());