Package com.sun.enterprise.instance

Examples of com.sun.enterprise.instance.ExtensionModuleConfigManager


    //////////////////////////////
    protected static BundleDescriptor getDescrForStandAloneExtensionModule(
        String moduleName) throws ServerInstanceException {
        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();
            }
            return desc;
        } catch (Exception e) {
            throw new ServerInstanceException(e.getLocalizedMessage());
View Full Code Here


        DeployableObjectType depObjType =
                DeployableObjectType.getDeployableObjectType(moduleType);
        ienv = ApplicationServer.getServerContext().getInstanceEnvironment();
       
        try {
            configManager = new ExtensionModuleConfigManager(ienv, moduleType);
            /* archiveDeployer.registerCustomManager(configManager,
                                              getParentClassLoader()); */
        } catch (ConfigException ce) {
            String msg = localStrings.getString("enterprise.deployment.backend.configException");
            logger.log(Level.SEVERE, msg, ce.toString());  
View Full Code Here

          Application app = webModulesManager.getDescriptor(wmID, location);     
                wbd = (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
            } else if ( configBean instanceof ExtensionModule) {
                ModuleType mType = XModuleType.getModuleType(
                            ((ExtensionModule)configBean).getModuleType());
                ExtensionModuleConfigManager extnModulesManager =
                        PluggableDeploymentInfo.getExtensionModuleDeployer(
                                                 mType).getConfigManager();
          Application app =
                        extnModulesManager.getExtensionDescriptor(wmID,
                            location, true);
                // if an app has to be loaded into the web container then it
                // should extend the WebBundleDescriptor
                if(app.getStandaloneBundleDescriptor()
                    instanceof WebBundleDescriptor) {
View Full Code Here

            saExtensionModuleManagers =
                new ExtensionModuleManager[extModuleTypes.length];
            for (int i = 0; i < extModuleTypes.length; i++) {
                // config manager for extension modules
                ExtensionModuleConfigManager extConfigManager =
                    InstanceFactory.createExtensionModuleConfigManager(
                        getInstanceEnvironment(), extModuleTypes[i]);
                              
                PluggableDeploymentInfo.getExtensionModuleDeployer(
                        extModuleTypes[i]).setConfigManager(extConfigManager);
View Full Code Here

            } else if(moduleType.equals(DeployableObjectType.CONN)) {
                return new ConnectorModulesManager(insEnv);
            } else if (moduleType.equals(DeployableObjectType.CAR)) {
                return new AppclientModulesManager(insEnv);
            } else {
                return new ExtensionModuleConfigManager(insEnv,
                    moduleType.getModuleType());
            }
        } catch (Exception e) {
            sLogger.log(Level.WARNING, e.getMessage(), e);
            return null;
View Full Code Here

TOP

Related Classes of com.sun.enterprise.instance.ExtensionModuleConfigManager

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.