/** * Open a jar file and return an application object for the modules contained * in the archive. If the archive is a standalone module, this API will * create an empty application and add the standalone module to it * * @param jarFile the archive file * @return the application object */ public Application openArchive(URI jarFile, String archiveType) throws IOException, SAXException { return openArchive(jarFile, archiveType, false); }
applicationFactory.openWith(application, sourceArchive, archivist); } catch(SAXException e) { application = applicationFactory.openArchive( name, archivist, sourceArchive, true);
archive.exists("META-INF/ra.xml")) { String archiveType = context.getArchiveHandler().getArchiveType() ; application = applicationFactory.createApplicationFromStandardDD(archive, archiveType); DeploymentTracing tracing = null; tracing = context.getModuleMetaData(DeploymentTracing.class);
/** * Open a jar file and return an application object for the modules contained * in the archive. If the archive is a standalone module, this API will * create an empty application and add the standalone module to it * * @param jarFile the archive file * @return the application object */ public Application openArchive(URI jarFile) throws IOException, SAXParseException { return openArchive(jarFile, false); }
/** * Open a jar file with the default Archivists and return an application * object for the modules contained in the archive. * If the archive is a standalone module, this API will * create an empty application and add the standalone module to it * * @param jarFile the archive file * @param handleRuntimeInfo set to true to read configuration deployment descriptors * @return the application object */ public Application openArchive(URI jarFile, String archiveType, boolean handleRuntimeInfo) throws IOException, SAXException { Archivist archivist = archivistFactory.getArchivist(archiveType); return openArchive(archivist, jarFile, handleRuntimeInfo); }
/** * Open a jar file and return an application object for the modules contained * in the archive. If the archive is a standalone module, this API will * create an empty application and add the standalone module to it * * @param archivist to use to open the archive file * @param in the archive abstraction * @param handleRuntimeInfo true to read configuration deployment descriptors * @return the application object */ public Application openArchive(Archivist archivist, ReadableArchive in, boolean handleRuntimeInfo) throws IOException, SAXException { return openArchive(in.getURI().getSchemeSpecificPart(), archivist, in, handleRuntimeInfo); }
/** * Open a jar file and return an application object for the modules contained * in the archive. If the archive is a standalone module, this API will * create an empty application and add the standalone module to it * * @param archivist to use to open the archive file * @param in the archive abstraction * @param handleRuntimeInfo true to read configuration deployment descriptors * @return the application object */ public Application openArchive(Archivist archivist, ReadableArchive in, boolean handleRuntimeInfo) throws IOException, SAXParseException { return openArchive(in.getURI().getSchemeSpecificPart(), archivist, in, handleRuntimeInfo); }
/** * Open a jar file and return an application object for the modules contained * in the archive/directory. If the archive/directory is a standalone module, this API will * create an empty application and add the standalone module to it * * @param archivist to use to open the archive file * @param jarFile the archive file * @param handleRuntimeInfo set to true to read configuration deployment descriptors * @return the application object */ public Application openArchive(Archivist archivist, URI jarFile, boolean handleRuntimeInfo) throws IOException, SAXException { // never read the runtime deployment descriptor before the // module type is found and the application object created ReadableArchive archive = archiveFactory.openArchive(jarFile); Application application = openArchive(archivist, archive, handleRuntimeInfo); archive.close(); return application; }
/** * Open a jar file with the default Archivists and return an application * object for the modules contained in the archive. * If the archive is a standalone module, this API will * create an empty application and add the standalone module to it * * @param jarFile the archive file * @param handleRuntimeInfo set to true to read configuration deployment descriptors * @return the application object */ public Application openArchive(URI jarFile, boolean handleRuntimeInfo) throws IOException, SAXParseException { ReadableArchive in = archiveFactory.openArchive(jarFile); Archivist archivist = archivistFactory.getPrivateArchivistFor(in); return openArchive(archivist, jarFile, handleRuntimeInfo); }
/** * Open a jar file and return an application object for the modules contained * in the archive/directory. If the archive/directory is a standalone module, this API will * create an empty application and add the standalone module to it * * @param archivist to use to open the archive file * @param jarFile the archive file * @param handleRuntimeInfo set to true to read configuration deployment descriptors * @return the application object */ public Application openArchive(Archivist archivist, URI jarFile, boolean handleRuntimeInfo) throws IOException, SAXParseException { // never read the runtime deployment descriptor before the // module type is found and the application object created ReadableArchive archive = archiveFactory.openArchive(jarFile); Application application = openArchive(archivist, archive, handleRuntimeInfo); archive.close(); return application; }