Examples of ArchiveFactory


Examples of com.sun.enterprise.deploy.shared.ArchiveFactory

                ApplicationClientDescriptor acd = (ApplicationClientDescriptor) md.getDescriptor();

                final String displayName = acd.getDisplayName();
                final String appName = acd.getModuleID();

                ArchiveFactory archiveFactory = Util.getArchiveFactory();
                ReadableArchive clientRA = archiveFactory.openArchive(ra.getURI().resolve(md.getArchiveUri()));

                /*
                 * Choose this nested app client if the caller-supplied name
                 * matches, or if the caller-supplied main class matches, or
                 * if neither was provided. 
View Full Code Here

Examples of com.sun.enterprise.deploy.shared.ArchiveFactory

            /*
             *The user did not specify a .class file on the command line, so
             *the locationFile argument refers to a valid module.
             *Construct an Archivist for the location file.
             */
            ArchiveFactory archiveFactory = new ArchiveFactory();
            ReadableArchive archive = archiveFactory.openArchive(locationFile);
            Archivist archivist = prepareArchivist(archive);
           
            if (archivist != null) {
                /*
                 *Choose which type of concrete AppClientInfo class is
View Full Code Here

Examples of com.sun.enterprise.deploy.shared.ArchiveFactory

    public boolean hasAnnotationInArchive(ReadableArchive archive) {
        scanArchive(archive);
        if (found) {
            return found;
        }     
        ArchiveFactory archiveFactory = null;
        if (Globals.getDefaultHabitat() != null) {
            archiveFactory = Globals.getDefaultHabitat().getService(ArchiveFactory.class);
        }

        if (archiveFactory != null) {
            List<URI> externalLibs = DeploymentUtils.getExternalLibraries(archive);
            for (URI externalLib : externalLibs) {
                try {
                    scanArchive(archiveFactory.openArchive(new File(externalLib.getPath())));
                } catch(FileNotFoundException fnfe) {
                    Object args[] = { externalLib.getPath(), archive.getName() };
                    deplLogger.log(Level.WARNING, ARCHIVE_NOT_FOUND, args);
                } catch (Exception e) {
                    LogRecord lr = new LogRecord(Level.WARNING, EXCEPTION_CAUGHT);
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.ArchiveFactory

            String defaultTarget =  (AMXUtil.isEE()) ? "domain" : "server";
            targets = new String[] {defaultTarget};
        }
       
       archivePath = archivePath.replace('\\', '/' );
        AbstractArchive archive = (new ArchiveFactory()).openArchive(archivePath);
        DeploymentFacility df= DeploymentFacilityFactory.getLocalDeploymentFacility();
        JESProgressObject progressObject = null;
       
        progressObject = df.deploy(df.createTargets(targets), archive, null , props)//null for deployment plan
        DeploymentStatus status = null;
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.ArchiveFactory

        final String targetName = getOption(TARGET_OPTION);               
       
        final String deploymentPlan = getOption(DEPLOYMENTPLAN_OPTION);
        JESProgressObject progressObject = null;
        try {
            AbstractArchive arch = (new ArchiveFactory()).openArchive(filespecToJarURI(filePath));
            AbstractArchive plan = null;
            if (deploymentPlan != null) {
                plan = (new ArchiveFactory()).openArchive(filespecToJarURI(deploymentPlan));
            }
            //value of the map is String only
            Map deployOptions = createDeploymentProperties();

            if (df.isConnected())
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.ArchiveFactory

                        archivePath + ", target = " + target);

                Map deployOptions = getDefaultDeploymentOptions(archivePath,
                        serviceUnitName,
                        target);
                arch = (new ArchiveFactory()).openArchive(archivePath);
                AbstractArchive plan = null;
                Target[] targets = deployer.createTargets(new String[]{target});
                logger.log(Level.FINE, methodSig + " calling backend deploy");
                JESProgressObject progressObject =
                        deployer.deploy(targets, arch, plan, deployOptions);
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.ArchiveFactory

         *Create archives for the module file and, if present, the deployment plan file, and
         *then delegate to the variant of deploy that accepts archives as arguments.
         */
        AbstractArchive appArchive = null;
        AbstractArchive planArchive = null;
        ArchiveFactory archiveFactory = new ArchiveFactory();
       
        try {
            appArchive = archiveFactory.openArchive(toJarURI(moduleArchive));
       
            if(deploymentPlan != null && deploymentPlan.length() != 0) {
                planArchive = archiveFactory.openArchive(toJarURI(deploymentPlan));
                if (planArchive == null) {
                    throw new IllegalArgumentException(localStrings.getLocalString(
                        "enterprise.deployapi.spi.noarchivisthandlesplan",
                        "No archivist is able to handle the deployment plan {0}",
                        new Object [] {deploymentPlan.getAbsolutePath()}
View Full Code Here

Examples of com.sun.enterprise.deployment.deploy.shared.ArchiveFactory

        if (path==null) {
            // no particular path was provided, using tmp jar file
            File root = File.createTempFile(name,".jar")//NOI18N
            path = root.toURI();
        }
        ArchiveFactory factory = new ArchiveFactory();
        boolean exists = false;
        if ((path.getScheme().equals("file")) ||  //NOI18N
            (path.getScheme().equals("jar"))) { //NOI18N
       
            File target = new File(path);
            exists = target.exists();                   
        } else {
            return null;
        }
        if (exists) {
            return factory.openArchive(path);           
        } else {
            return factory.createArchive(path);
        }
    }
View Full Code Here

Examples of org.eclipse.persistence.jpa.ArchiveFactory

    public static ArchiveFactory getArchiveFactory(ClassLoader loader){
        if (ARCHIVE_FACTORY != null){
            return ARCHIVE_FACTORY;
        }
       
        ArchiveFactory factory = null;
        String factoryClassName = System.getProperty(SystemProperties.ARCHIVE_FACTORY, null);
       
        if (factoryClassName == null) {
            return new ArchiveFactoryImpl();
        } else {
View Full Code Here

Examples of org.eclipse.persistence.jpa.ArchiveFactory

    public static ArchiveFactory getArchiveFactory(ClassLoader loader){
        if (ARCHIVE_FACTORY != null){
            return ARCHIVE_FACTORY;
        }
       
        ArchiveFactory factory = null;
        String factoryClassName = System.getProperty(SystemProperties.ARCHIVE_FACTORY, null);
       
        if (factoryClassName == null) {
            return new ArchiveFactoryImpl();
        } else {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.