Package com.sun.enterprise.deployment.io

Examples of com.sun.enterprise.deployment.io.ApplicationDeploymentDescriptorFile


        private void parse(boolean validateXML) throws IASDeploymentException, IOException, SAXParseException
  {
            FileInputStream fis = null;
            try {
    fis = new FileInputStream(file);
    ApplicationDeploymentDescriptorFile addf = new ApplicationDeploymentDescriptorFile();
                addf.setXMLValidation(validateXML);
                if (validateXML) {
                    addf.setXMLValidationLevel(addf.PARSING_VALIDATION);
                }

                app = (Application) addf.read(fis);

                // read runtime deployment descriptor file if it exists
                if (file2 != null) {
                    FileInputStream fis2 = new FileInputStream(file2);
        ApplicationRuntimeDDFile arddf =
View Full Code Here


            File f = new File(appXML);
            if (!f.exists() || (bundleName==null)) {
                return null;
            }

            ApplicationDeploymentDescriptorFile addf =
                new ApplicationDeploymentDescriptorFile();
            fis = new FileInputStream(f);
            Application app = (Application) addf.read(fis);
            for (Iterator itr=app.getModules();itr.hasNext();) {
                ModuleDescriptor md = (ModuleDescriptor) itr.next();
                String uri = md.getArchiveUri();
                if (bundleName.equals(uri)) {
                    altDD = md.getAlternateDescriptor();
View Full Code Here

                    String rLocation = pr.resolve(loc);

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);
                    ApplicationDeploymentDescriptorFile rootDD =
                        new ApplicationDeploymentDescriptorFile();
                    Application application =
                        (Application) rootDD.read(null, in);

                    // all web modules in the J2EE application
                    for (Iterator modules=application.getModules();
                        modules.hasNext();) {
View Full Code Here

                    String rLocation = pr.resolve(loc);

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);
                    ApplicationDeploymentDescriptorFile rootDD =
                        new ApplicationDeploymentDescriptorFile();
                    Application application =
                        (Application) rootDD.read(null, in);

                    // all web modules in the J2EE application
                    for (Iterator modules=application.getModules();
                        modules.hasNext();) {
View Full Code Here

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);

                    ApplicationDeploymentDescriptorFile rootDD = new ApplicationDeploymentDescriptorFile();
                    Application application = (Application) rootDD.read(null, in);

                    // all web modules in the J2EE application
                    for (Iterator modules = application.getModules();
                            modules.hasNext();) {
                        ModuleDescriptor aModule = (ModuleDescriptor) modules.next();
View Full Code Here

                    // opening the application.xml descriptor
                    FileArchive in = new FileArchive();
                    in.open(rLocation);

                    ApplicationDeploymentDescriptorFile rootDD = new ApplicationDeploymentDescriptorFile();
                    Application application = (Application) rootDD.read(null, in);

                    // all web modules in the J2EE application
                    for (Iterator modules = application.getModules();
                            modules.hasNext();) {
                        ModuleDescriptor aModule = (ModuleDescriptor) modules.next();
View Full Code Here

        *Add finally clause containing explicit close of jar file.
        */
        JarFile jar = null;
        try {
            jar = new JarFile(jarFile);
            ApplicationDeploymentDescriptorFile node = new ApplicationDeploymentDescriptorFile();
            node.setXMLValidation(false);
            ZipEntry deploymentEntry = jar.getEntry(node.getDeploymentDescriptorPath());
            if (deploymentEntry != null) {
                try {
                    Application application = (Application) node.read(jar.getInputStream(deploymentEntry));
                    return application.getDisplayName();
                } catch (Exception pe) {
                    logger.log(Level.WARNING, "Error occurred", pe)
                }
            }
View Full Code Here

        *Add finally clause containing explicit close of jar file.
        */
        JarFile jar = null;
        try {
            jar = new JarFile(jarFile);
            ApplicationDeploymentDescriptorFile node = new ApplicationDeploymentDescriptorFile();
            node.setXMLValidation(false);
            ZipEntry deploymentEntry = jar.getEntry(node.getDeploymentDescriptorPath());
            if (deploymentEntry != null) {
                try {
                    Application application = (Application) node.read(jar.getInputStream(deploymentEntry));
                    return application.getDisplayName();
                } catch (Exception pe) {
                    logger.log(Level.WARNING, "Error occurred", pe)
                }
            }
View Full Code Here

        *Add finally clause containing explicit close of jar file.
        */
        JarFile jar = null;
        try {
            jar = new JarFile(jarFile);
            ApplicationDeploymentDescriptorFile node = new ApplicationDeploymentDescriptorFile();
            node.setXMLValidation(false);
            ZipEntry deploymentEntry = jar.getEntry(node.getDeploymentDescriptorPath());
            if (deploymentEntry != null) {
                try {
                    Application application = (Application) node.read(jar.getInputStream(deploymentEntry));
                    return application.getDisplayName();
                } catch (Exception pe) {
                    logger.log(Level.WARNING, "Error occurred", pe)
                }
            }
View Full Code Here

     * standard deployment descriptor
     */
    @Override
    public DeploymentDescriptorFile getStandardDDFile() {
        if (standardDD == null) {
            standardDD = new ApplicationDeploymentDescriptorFile();  
        }
        return standardDD;
    }  
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.io.ApplicationDeploymentDescriptorFile

Copyright © 2018 www.massapicom. 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.