Package com.sun.enterprise.deployment

Examples of com.sun.enterprise.deployment.BundleDescriptor$InjectionInfoCacheKey


                appName);
        List result = new ArrayList();
        String[] modules = null;

        try {
            BundleDescriptor desc = getDescrForStandAloneExtensionModule(appName);
            modules = getValidatedObjectNames(getExtensionModuleComponents(
                        (WebBundleDescriptor) desc));

            for (int i = 0; i < modules.length; i++) {
                HashMap oneRow = new HashMap();
View Full Code Here


        try {
            J2EEModule j2eeModule = new J2EEModule(moduleName);
            ExtensionModuleConfigManager manager = PluggableDeploymentInfo.getExtensionModuleDeployer(
                    j2eeModule.getModuleType()).getConfigManager();

            BundleDescriptor desc = (BundleDescriptor)manager.getRegisteredExtensionDescriptor(moduleName);
            if (desc == null) {
                Application app = manager.getExtensionDescriptor(moduleName,
                        manager.getLocation(moduleName), true);
                desc = (BundleDescriptor) app.getBundleDescriptors().iterator().next();
            }
View Full Code Here

                    // write or copy standard deployment descriptor
                    String ddPath = aModule.getAlternateDescriptor();
                    DeploymentDescriptorFile ddFile =
                        moduleArchivist.getStandardDDFile();           
                    
                    BundleDescriptor bundle =
                            (BundleDescriptor)aModule.getDescriptor();
                    if (!bundle.isFullFlag()) {
                        if (ddFile != null) {
                            OutputStream os = out.putNextEntry(ddPath);
                            ddFile.write(bundle, os);
                            out.closeEntry();
                        }
View Full Code Here

                    EJBClassPathUtils.getModuleClasspath(
                        modID, null, ejbModulesManager).toArray(new String[0]);
                initializeLoader(classPath, ejbModulesManager.getLocation(modID), ModuleType.EJB);
                application.setClassLoader(this.ejbClassLoader);
                if (application.isVirtual()) { //better be
                    BundleDescriptor bd =
                        application.getStandaloneBundleDescriptor();
                    bd.setClassLoader(ejbClassLoader);
                }
            } else {
                initializeLoader(application.getClassLoader());
            }
        } catch (Exception confEx) {
View Full Code Here

            // unload web service endpoint
            Iterator itr  = bundleSet.iterator();

            while ( itr.hasNext() ) {
                BundleDescriptor nextDescriptor = (BundleDescriptor)
                        itr.next();

                try {
                    WSMonitorLifeCycleFactory.getInstance().
                    getWSMonitorLifeCycleProvider().
View Full Code Here

            bundleSet.addAll(this.application.getEjbBundleDescriptors());
            bundleSet.addAll(this.application.getWebBundleDescriptors());
            Iterator itr  = bundleSet.iterator();

            while ( itr.hasNext() ) {
                BundleDescriptor nextDescriptor = (BundleDescriptor) itr.next();

                try {
                    WSMonitorLifeCycleFactory.getInstance().
                    getWSMonitorLifeCycleProvider().
                    unregisterWebServiceEndpoints(
View Full Code Here

            bundles.addAll((Collection<BundleDescriptor>)
                    application.getWebBundleDescriptors());
            // Add only those extension modules that extend WebBundleDescriptor
            Set ebds = application.getExtnBundleDescriptors();
            for(Iterator iter = ebds.iterator(); iter.hasNext();){
                BundleDescriptor bd = (BundleDescriptor)iter.next();
                if(bd instanceof WebBundleDescriptor) {
                    bundles.add(bd);
                }
            }
            return bundles;
View Full Code Here

    void createRootMBean () throws MBeanException {

        java.util.Set extBundles = this.application.getExtnBundleDescriptors();

        for(Iterator it=extBundles.iterator(); it.hasNext(); ) {
            BundleDescriptor bd = (BundleDescriptor)it.next();
      try {
              Switch.getSwitch().getManagementObjectManager().createExtModuleMBean(bd,
        this.configManager.getInstanceEnvironment().getName(),
        this.configManager.getLocation(this.id),
                    moduleType.toString());
View Full Code Here

    void setState(int state) throws MBeanException {

        java.util.Set extBundles = this.application.getExtnBundleDescriptors();

        for(Iterator it=extBundles.iterator(); it.hasNext(); ) {
            BundleDescriptor bd = (BundleDescriptor)it.next();
            Switch.getSwitch().getManagementObjectManager().setExtModuleState(state, bd,
                this.configManager.getInstanceEnvironment().getName(),
                    moduleType.toString());
        }
    }
View Full Code Here

   
    public static EntityManagerFactory lookupEntityManagerFactory(int invType,
            String emfUnitName, Object descriptor) {

        Application app = null;
        BundleDescriptor module = null;

        EntityManagerFactory emf = null;

        switch (invType) {

        case ComponentInvocation.EJB_INVOCATION:

            EjbDescriptor ejbDesc = (EjbDescriptor) descriptor;
            module = ejbDesc.getEjbBundleDescriptor();
            app = module.getApplication();

            break;

        case ComponentInvocation.SERVLET_INVOCATION:

            module = (WebBundleDescriptor) descriptor;
            app = module.getApplication();

            break;

        case ComponentInvocation.APP_CLIENT_INVOCATION:

            module = (ApplicationClientDescriptor) descriptor;
            app = module.getApplication();

            break;

        default:

            break;
        }

        // First check module-level for a match.
        if (module != null) {
            if (emfUnitName != null) {
                emf = module.getEntityManagerFactory(emfUnitName);
            } else {
                Set<EntityManagerFactory> emFactories = module
                        .getEntityManagerFactories();
                if (emFactories.size() == 1) {
                    emf = emFactories.iterator().next();
                }
            }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.deployment.BundleDescriptor$InjectionInfoCacheKey

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.