Examples of BundleDescriptor


Examples of com.sun.enterprise.deployment.BundleDescriptor

            // Get the module descriptor and
            // list of component names

            if (j2eeType.equals("EJBModule")) {
                BundleDescriptor bd = getDescrForStandAloneEjbModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(
      getEjbModuleComponents((EjbBundleDescriptor)bd));
                return modComponents;
            } else if (j2eeType.equals("WebModule")) {
                BundleDescriptor bd = getDescrForStandAloneWebModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(
                  getWebModuleComponents((WebBundleDescriptor)bd));
                return modComponents;
            } else if (j2eeType.equals("ResourceAdapterModule")) {
                BundleDescriptor bd = getDescrForStandAloneRarModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(
                  getRarModuleComponents((ConnectorDescriptor)bd));
                return modComponents;
            } else if (j2eeType.equals("AppClientModule")) {
                BundleDescriptor bd = getDescrForStandAloneCarModule(standAloneModuleName);
                modComponents = getValidatedObjectNames(getCarModuleComponents(bd));
                return modComponents;
            } else if (j2eeType.equals("J2EEApplication")) {
                Application ad = getDescrForApplication(standAloneModuleName);
                modComponents = getValidatedObjectNames(getApplicationComponents(ad));
View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

      }

            // Get the bundle descriptor for the given module
            // and determine its' type

            BundleDescriptor bd = null;
            ModuleType modType = null;
            java.util.Set bds = appD.getBundleDescriptors();
            for(Iterator it=bds.iterator(); it.hasNext(); ) {
                bd = (BundleDescriptor)it.next();
                if ((bd.getModuleDescriptor().getArchiveUri()).equals(modName) ||
                     bd.getModuleID().equals(modName) ||
         bd.getName().equals(modName)) {
                        modType = bd.getModuleType();
      break;
                }
            }

            // invoke approprite module to list components
View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

    ManagementObjectManager mom = Switch.getSwitch().getManagementObjectManager();
                String applicationName = ad.getRegistrationName();
                String j2eeType = null;

    java.util.Set bds = null;
    BundleDescriptor bd = null;

    // Determine number of modules and initialize the String array
                int i = 0;
    sArr = new String [ ad.getApplicationClientDescriptors().size() +
            ad.getEjbBundleDescriptors().size() +
            ad.getRarDescriptors().size() +
            ad.getWebBundleDescriptors().size() ];

    // App client modules
    bds = ad.getApplicationClientDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=AppClientModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

    // Ejb modules
    bds = ad.getEjbBundleDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=EJBModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

    // Connector modules
    bds = ad.getRarDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=ResourceAdapterModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

    // Web modules
    bds = ad.getWebBundleDescriptors();
    for(Iterator it=bds.iterator(); it.hasNext(); ) {
      bd = (BundleDescriptor) it.next();
      sArr[i] = ("j2eeType=WebModule" + "," +
           "name=" + bd.getModuleDescriptor().getArchiveUri() + "," +
           "J2EEApplication=" + applicationName);
      i++;
    }

View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

        if ( wse != null) {
            ep = wse.getEndpointName();
        }
        //wse.resolveComponentLink();

        BundleDescriptor bundle = wse.getBundleDescriptor();
        Application app = bundle.getApplication();

        String fqn = 
        WebServiceMgrBackEnd.getManager().getFullyQualifiedName(
           app.getRegistrationName() ,
           bundle.getModuleDescriptor().getArchiveUri(),
           bundle.getModuleDescriptor().isStandalone(), ep);

        if (FilterRegistry.getInstance().isManaged(fqn) == false) {
            return null;
        }
        String mId = null;
View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

        com.sun.enterprise.deployment.WebServiceEndpoint wse=ep.getDescriptor();
        String epName = null;
        if (wse != null) {
            epName = wse.getEndpointName();
        }
        BundleDescriptor bundle = wse.getBundleDescriptor();
        Application app = bundle.getApplication();
       
        String fqn = getFullyQualifiedName( app.getRegistrationName() ,
                bundle.getModuleDescriptor().getArchiveUri(),
                app.isVirtual(), epName);
        return fqn;
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

                } else if (dr.isApplication()) {
                    List ejb = new ArrayList();
                    Set ejbBundles = rootDD.getEjbBundleDescriptors();

                    for (Iterator iter=ejbBundles.iterator(); iter.hasNext();) {
                        BundleDescriptor bd = (BundleDescriptor) iter.next();
                        WebServicesDescriptor wsDD = bd.getWebServices();
                        if (wsDD.hasWebServices()) {

                            // ejb bundle has web services
                            ejb.add(bd.getModuleDescriptor().getArchiveUri());
                        }
                    }

                    List web = new ArrayList();
                    Set webBundles = rootDD.getWebBundleDescriptors();
                    for (Iterator iter=webBundles.iterator(); iter.hasNext();) {
                        BundleDescriptor bd = (BundleDescriptor) iter.next();
                        WebServicesDescriptor wsDD = bd.getWebServices();
                        if (wsDD.hasWebServices()) {

                            // web bundle has web services
                            web.add(bd.getModuleDescriptor().getArchiveUri());
                        }
                    }

                    if ( (!ejb.isEmpty()) || (!web.isEmpty()) ) {
                        mgr.addJ2eeApplication(dr.getName(), ejb, web);
View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

        /**
         * Set sbd in the ModuleDescriptor so that
         * application.getModules().next() returns the newly created
         * SipModule instead of WebModule.
         */
        BundleDescriptor prev = sbd.getModuleDescriptor().getDescriptor();
        sbd.getModuleDescriptor().setDescriptor(sbd);
        super.runVerifier();
        sbd.getModuleDescriptor().setDescriptor(prev);
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.BundleDescriptor

        /*
         *Return the developer-specified context root, if there is one.
         */
        String result = null;

        BundleDescriptor bd = moduleDescr.getDescriptor();
        if (bd instanceof ApplicationClientDescriptor) {
            ApplicationClientDescriptor acd = (ApplicationClientDescriptor) bd;
            JavaWebStartAccessDescriptor jwsAD = acd.getJavaWebStartAccessDescriptor();
            if (jwsAD != null) {
                result = jwsAD.getContextRoot();
View Full Code Here

Examples of de.kalpatec.pojosr.framework.launch.BundleDescriptor

        JarInputStream jis = new JarInputStream(new FileInputStream(file));
        Map<String, String> headers = new HashMap<String, String>();
        for (Map.Entry entry : jis.getManifest().getMainAttributes().entrySet()) {
            headers.put(entry.getKey().toString(), entry.getValue().toString());
        }
        return new BundleDescriptor(
                getClass().getClassLoader(),
                new URL("jar:" + file.toURI().toString() + "!/"),
                headers);
    }
View Full Code Here

Examples of de.kalpatec.pojosr.framework.launch.BundleDescriptor

            bundles.add(getBundleDescriptor("target/test-bundles/" + jarName, bundle));
        }

        if (LOG.isDebugEnabled()) {
            for (int i = 0; i < bundles.size(); i++) {
                BundleDescriptor desc = bundles.get(i);
                LOG.debug("Bundle #{} -> {}", i, desc);
            }
        }

        // setup pojosr to use our bundles
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.