public T open(final ReadableArchive descriptorArchive, final ReadableArchive contentArchive) throws IOException, SAXParseException { return open(descriptorArchive, contentArchive, null); } /**
public ApplicationClientDescriptor open(final ReadableArchive archive, final String mainClassNameToRun) throws IOException, SAXParseException { this.mainClassNameToRun = mainClassNameToRun; return super.open(archive); }
/** * Open a new archive file, read the XML descriptor and set the constructed * DOL descriptor instance * * @param archive the archive file path * @return the deployment descriptor for this archive */ public T open(ReadableArchive archive) throws IOException, SAXParseException { return open(archive, (Application) null); }
public ApplicationClientDescriptor open(final ReadableArchive archive, final String mainClassNameToRun) throws IOException, SAXException { this.mainClassNameToRun = mainClassNameToRun; return super.open(archive); }
/** * Open a new archive file, read the deployment descriptors and annotations * and set the constructed DOL descriptor instance * * @param archive the archive file path * @return the deployment descriptor for this archive */ public T open(ReadableArchive archive) throws IOException, SAXException { return open(archive, (Application) null); }
public T open(final ReadableArchive descriptorArchive, final ReadableArchive contentArchive) throws IOException, SAXException { return open(descriptorArchive, contentArchive, null); } /**
public T open(ReadableArchive archive, Application app) throws IOException, SAXParseException { return open(archive, archive, app); }
public T open(ReadableArchive archive, Application app) throws IOException, SAXException { return open(archive, archive, app); }
/** * Open a new archive file, read the XML descriptor and set the constructed * DOL descriptor instance * * @param path the archive file path * @return the deployment descriptor for this archive */ public T open(String path) throws IOException, SAXParseException { this.path = path; File file = new File(path); if (!file.exists()) { throw new FileNotFoundException(path); } return open(file); }
/** * Open a new archive file, read the XML descriptor and set the constructed * DOL descriptor instance * * @param path the archive file path * @return the deployment descriptor for this archive */ public T open(String path) throws IOException, SAXException { this.path = path; File file = new File(path); if (!file.exists()) { throw new FileNotFoundException(path); } return open(file); }
/** * open a new archive file using a file descriptor * * @param file the archive to open */ public T open(File file) throws IOException, SAXParseException { path = file.getAbsolutePath(); ReadableArchive archive = archiveFactory.openArchive(file); T descriptor = open(archive); archive.close(); // attempt validation validate(null); return descriptor; }
/** * open a new archive file using a file descriptor * * @param file the archive to open */ public T open(File file) throws IOException, SAXException { path = file.getAbsolutePath(); ReadableArchive archive = archiveFactory.openArchive(file); T descriptor = open(archive); archive.close(); // attempt validation validate(null); return descriptor; }
wfArchivist.hasStandardDeploymentDescriptor(embeddedArchive)) { try { wfDesc = (WebFragmentDescriptor)wfArchivist.open(embeddedArchive); } catch(SAXParseException ex) { IOException ioex = new IOException();
BundleDescriptor descriptor = archivist.open(in); Application application; if (descriptor instanceof Application) {
RootDeploymentDescriptor descriptor = archivist.open(in); Application application; if (descriptor instanceof Application) {
descriptor = newArchivist.open(embeddedArchive, app);
descriptor = newArchivist.open(embeddedArchive, app); } else { DOLUtils.getDefaultLogger().info(localStrings.getLocalString(