Examples of ConfigurationData


Examples of com.google.eclipse.javascript.jstestdriver.core.ConfigurationData

      public boolean visit(IResource resource) throws CoreException {
        if (resource.getName().endsWith(".conf") || resource.getName().endsWith(".jstd")) {
          // get the path relative to the project.
          String resourcePath = resource.getProjectRelativePath().toOSString();
          configurationPaths.put(
              resourcePath, new ConfigurationData(resourcePath, resourcePath, basePaths));
        }
        return true;
      }
    });
    return configurationPaths;
View Full Code Here

Examples of net.sf.collabreview.core.configuration.ConfigurationData

    assert configuration != null;
    logger.debug("Configuring SubversionImportWorker"); // from: " + configuration.asXML());
    initSvnLib();
    repository = setupConnection(configuration);
    store = importer.getCollabReview().getRepository();
    ConfigurationData element = configuration.getSubElement("startrevision");
    if (element != null) {
      startRevision = Long.parseLong(element.getSelfValue());
    }
    element = configuration.getSubElement("endrevision");
    if (element != null) {
      endRevision = Long.parseLong(element.getSelfValue());
    }
    element = configuration.getSubElement("pollDelay");
    if (element != null) {
      pollDelay = Long.parseLong(element.getSelfValue()) * 1000;
    }
    element = configuration.getSubElement("fileencoding");
    if (element != null) {
      defaultEncoding = element.getSelfValue();
    }
    element = configuration.getSubElement("maxsourcesize");
    int sourceFileSizeLimit = element != null ? Integer.parseInt(element.getSelfValue()) : SOURCE_FILE_SIZE_LIMIT;
    logger.info("Assuming default encoding of sources in svn is: " + defaultEncoding);
    initBranchMappers(configuration);
    fileUpdateHandler = new FileUpdateHandler(this, progressInfo, store, Filter.readFilter(configuration.getSubElement("filter")), sourceFileSizeLimit);
    directoryUpdateHandler = new DirectoryUpdateHandler(this, progressInfo, store);
    progressInfo.setState(ImportProgressInfo.State.created);
View Full Code Here

Examples of org.apache.geronimo.console.util.ConfigurationData

        ApacheModel model = (ApacheModel) amodel;
        ConfigurationData[] webApps = PortletManager.getConfigurations(request, ConfigurationModuleType.WAR, true);
        if(model.getWebApps().size() == 0) {
            List list = model.getWebApps();
            for (int i = 0; i < webApps.length; i++) {
                ConfigurationData app = webApps[i];
                WebAppData data = new WebAppData(app.getParentName().getArtifact(), app.getChildName(), app.getModuleBeanName() == null ? null : app.getModuleBeanName(), false, null, false);
                if (app.isRunning()) {
                    WebModule web = (WebModule) PortletManager.getManagedBean(request, app.getModuleBeanName());
                    data.setContextRoot(web.getContextPath());
                    String path;
                    if(web.getWARDirectory().getProtocol().equals("file")) {
                        path = web.getWARDirectory().getPath();
                    } else {
View Full Code Here

Examples of org.apache.geronimo.console.util.ConfigurationData

        ApacheModel model = (ApacheModel) amodel;
        ConfigurationData[] webApps = PortletManager.getConfigurations(request, ConfigurationModuleType.WAR, true);
        if(model.getWebApps().size() == 0) {
            List list = model.getWebApps();
            for (int i = 0; i < webApps.length; i++) {
                ConfigurationData app = webApps[i];
                WebAppData data = new WebAppData(app.getParentName().getArtifact(), app.getChildName(), app.getModuleBeanName() == null ? null : app.getModuleBeanName(), false, null, false);
                if (app.isRunning()) {
                    WebModule web = (WebModule) PortletManager.getManagedBean(request, app.getModuleBeanName());
                    data.setContextRoot(web.getContextPath());
                    String path;
                    if(web.getWARDirectory().getProtocol().equals("file")) {
                        path = web.getWARDirectory().getPath();
                    } else {
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationData

                    }
                }
                // Go with something that's installed
                configID = matches[matches.length - 1];
            }
            ConfigurationData data = null;
            if (configStore.containsConfiguration(configID)) {
                if (configManager.isRunning(configID)) {
                    return; // its dependencies must be OK
                }
                log.debug("Loading configuration=" + configID);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationData

        } else {
            if (!configStore.containsConfiguration(moduleId)) {
                return null;
            }
        }
        ConfigurationData data = configStore.loadConfiguration(moduleId);

        PluginType meta = new PluginType();
        PluginArtifactType instance = new PluginArtifactType();
        meta.getPluginArtifact().add(instance);
        meta.setName(toArtifactType(moduleId).toString());
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationData

        EARContext earContext = createEARContext(outputPath, defaultEnvironment, repository, configStore, moduleName);
        module.setEarContext(earContext);
        module.setRootEarContext(earContext);
        builder.initContext(earContext, module, cl);
        builder.addGBeans(earContext, module, cl, Collections.EMPTY_SET);
        ConfigurationData configurationData = earContext.getConfigurationData();
        earContext.close();
        module.close();

        Artifact configurationId = configurationData.getId();
        configurationManager.loadConfiguration(configurationData);
        Configuration configuration = configurationManager.getConfiguration(configurationId);
        configurationManager.startConfiguration(configurationId);

        assertEquals(State.RUNNING_INDEX, kernel.getGBeanState(moduleName));
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationData

        EARContext earContext = createEARContext(outputPath, defaultEnvironment, repository, configStore, moduleName);
        module.setEarContext(earContext);
        module.setRootEarContext(earContext);
        builder.initContext(earContext, module, cl);
        builder.addGBeans(earContext, module, cl, Collections.EMPTY_SET);
        ConfigurationData configurationData = earContext.getConfigurationData();
        earContext.close();
        module.close();

        Artifact configurationId = configurationData.getId();
        configurationManager.loadConfiguration(configurationData);
        Configuration configuration = configurationManager.getConfiguration(configurationId);
        configurationManager.startConfiguration(configurationId);

        String contextRoot = (String) kernel.getAttribute(moduleName, "contextPath");
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationData

        cl = this.getClass().getClassLoader();
        kernel = KernelFactory.newInstance().createKernel("test");
        kernel.boot();

        ConfigurationData bootstrap = new ConfigurationData(baseId, naming);

        GBeanData serverInfo = bootstrap.addGBean("ServerInfo", BasicServerInfo.GBEAN_INFO);
        serverInfo.setAttribute("baseDirectory", ".");

        AbstractName configStoreName = bootstrap.addGBean("MockConfigurationStore", MockConfigStore.GBEAN_INFO).getAbstractName();

        GBeanData artifactManagerData = bootstrap.addGBean("ArtifactManager", DefaultArtifactManager.GBEAN_INFO);

        GBeanData artifactResolverData = bootstrap.addGBean("ArtifactResolver", DefaultArtifactResolver.GBEAN_INFO);
        artifactResolverData.setReferencePattern("ArtifactManager", artifactManagerData.getAbstractName());

        GBeanData configurationManagerData = bootstrap.addGBean("ConfigurationManager", EditableKernelConfigurationManager.GBEAN_INFO);
        configurationManagerData.setReferencePattern("ArtifactManager", artifactManagerData.getAbstractName());
        configurationManagerData.setReferencePattern("ArtifactResolver", artifactResolverData.getAbstractName());
        configurationManagerData.setReferencePattern("Stores", configStoreName);
        bootstrap.addGBean(configurationManagerData);

        GBeanData serverData = new GBeanData(serverName, J2EEServerImpl.GBEAN_INFO);
        bootstrap.addGBean(serverData);

        Collection defaultServlets = new HashSet();
        Collection defaultFilters = new HashSet();
        Collection defaultFilterMappings = new HashSet();
        Object pojoWebServiceTemplate = null;
        WebServiceBuilder webServiceBuilder = new UnavailableWebServiceBuilder();

        GBeanData containerData = bootstrap.addGBean("JettyContainer", JettyContainerImpl.GBEAN_INFO);
        AbstractName containerName = containerData.getAbstractName();
        containerData.setAttribute("jettyHome", new File(BASEDIR, "target/var/jetty").toString());
        containerData.setReferencePattern("ServerInfo", serverInfo.getAbstractName());

        GBeanData connector = bootstrap.addGBean("JettyConnector", HTTPSocketConnector.GBEAN_INFO);
        connector.setAttribute("port", new Integer(5678));
        connector.setAttribute("maxThreads", new Integer(50));
//        connector.setAttribute("minThreads", new Integer(10));
        connector.setReferencePattern("JettyContainer", containerName);

        GBeanData tm = bootstrap.addGBean("TransactionManager", GeronimoTransactionManagerGBean.GBEAN_INFO);
        tmName = tm.getAbstractName();
        tm.setAttribute("defaultTransactionTimeoutSeconds", new Integer(10));

        GBeanData ctc = bootstrap.addGBean("ConnectionTrackingCoordinator", ConnectionTrackingCoordinatorGBean.GBEAN_INFO);
        ctcName = ctc.getAbstractName();
        ctc.setReferencePattern("TransactionManager", tmName);

        ConfigurationUtil.loadBootstrapConfiguration(kernel, bootstrap, getClass().getClassLoader());
View Full Code Here

Examples of org.apache.geronimo.kernel.config.ConfigurationData

        earContext.setJaccManagerName(jaccBeanName);
        module.setEarContext(earContext);
        module.setRootEarContext(earContext);
        builder.initContext(earContext, module, cl);
        builder.addGBeans(earContext, module, cl, null);
        ConfigurationData configurationData = earContext.getConfigurationData();
        earContext.close();
        module.close();

        Artifact configurationId = configurationData.getId();
        configurationManager.loadConfiguration(configurationData);
        Configuration configuration = configurationManager.getConfiguration(configurationId);
        configurationManager.startConfiguration(configurationId);

        return new WebModuleInfo(moduleName, configuration);
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.