Package com.sun.enterprise.instance

Examples of com.sun.enterprise.instance.WebModulesManager


        }
        try {
            WebBundleDescriptor wbd = null;
            if( configBean instanceof WebModule ) {
                WebModulesManager webModulesManager = new WebModulesManager(
                    ApplicationServer.getServerContext().getInstanceEnvironment());
          Application app = webModulesManager.getDescriptor(wmID, location);     
                wbd = (WebBundleDescriptor) app.getStandaloneBundleDescriptor();
            } else if ( configBean instanceof ExtensionModule) {
                ModuleType mType = XModuleType.getModuleType(
                            ((ExtensionModule)configBean).getModuleType());
                ExtensionModuleConfigManager extnModulesManager =
View Full Code Here


     * @return StandAloneWebModulesManager
     **/
    public static synchronized DummyWebModuleManager getSAWebModulesManager() throws ConfigException {
        if(saWebManager == null) {
            // config manager for stand alone web modules
            WebModulesManager webModuleManager = new WebModulesManager(getInstanceEnvironment());
            saWebManager = new WebModuleDeployEventListener(webModuleManager, getSharedClassLoader());          
        }

        return saWebManager;
    }
View Full Code Here

            if (moduleType.equals(DeployableObjectType.APP)) {
                return new AppsManager(insEnv);
            } else if (moduleType.equals(DeployableObjectType.EJB)) {
                return new EjbModulesManager(insEnv);
            } else if(moduleType.equals(DeployableObjectType.WEB)) {
                return new WebModulesManager(insEnv);
            } else if(moduleType.equals(DeployableObjectType.CONN)) {
                return new ConnectorModulesManager(insEnv);
            } else if (moduleType.equals(DeployableObjectType.CAR)) {
                return new AppclientModulesManager(insEnv);
            } else {
View Full Code Here

     * @throws ServerInstanceException
     */
    BundleDescriptor getDescrForStandAloneWebModule (String moduleName)
                throws ServerInstanceException {
        try {
            WebModulesManager webModMgr =
                InstanceFactory.createWebModuleManager(getInstanceName());
            return (BundleDescriptor)
                DeploymentUtils.getDescriptor(moduleName, webModMgr);
        } catch (Exception e) {
            throw new ServerInstanceException(e.getLocalizedMessage());
View Full Code Here

                                            getEjbModuleByName(appName);
                        appLocation = module.getLocation();
                    }
                    break;
                case DeploymentConstants.WAR:
                    WebModulesManager webManager = new WebModulesManager(iEnv);
                    appLocation = webManager.getGeneratedXMLLocation(appName);
                    if (appLocation == null || !FileUtils.safeIsDirectory(appLocation)) {
                        WebModule webModule = applicationsConfigBean.
                                            getWebModuleByName(appName);
                        appLocation = webModule.getLocation();
                    }
View Full Code Here

       ////////////////////////////////////////////////////////////////////////

  protected BaseManager createConfigManager(InstanceEnvironment ienv, ModuleEnvironment menv)
            throws IASDeploymentException, ConfigException
  {
    webModulesMgr = new WebModulesManager(ienv);
    return webModulesMgr;
  }
View Full Code Here

      if(needsStubs())
        stubsDir  = new File(modulesMgr.getStubLocation(moduleName));
      if(needsJSPs())
      {
        assert (modulesMgr instanceof WebModulesManager);
        WebModulesManager mgr = (WebModulesManager)modulesMgr;
        jspDir = new File(mgr.getJSPLocation(moduleName));
      }
    }
    catch(Exception e)
    {
      String msg = localStrings.getString(
View Full Code Here

      stubsDir  = new File(modulesMgr.getStubLocation(moduleName));
                }
    if(needsJSPs())
    {
      assert (modulesMgr instanceof WebModulesManager);
      WebModulesManager mgr = (WebModulesManager)modulesMgr;
      jspDir = new File(mgr.getJSPLocation(moduleName));
    }
   
    if(isArchive())
    {
      // be sure we have the original deployed directory
View Full Code Here

        // END S1AS 6178005

        webFeatureFactory = _serverContext.getPluggableFeatureFactory().getWebContainerFeatureFactory();

        try {
            webModulesManager = new WebModulesManager(instance);
            appsManager = new AppsManager(instance);
        } catch (ConfigException cx) {
            _logger.log(Level.WARNING,
                "Error in creating web modules manager: ", cx);
        }
View Full Code Here

TOP

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

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.