Examples of loadConfiguration()


Examples of org.apache.geronimo.kernel.config.EditableConfigurationManager.loadConfiguration()

        ds2Binding.setAttribute("name", "ds2");
        ds2Binding.setAttribute("abstractNameQuery", new AbstractNameQuery(null,
                Collections.singletonMap("name", "ds2"),
                DataSource.class.getName()));

        configurationManager.loadConfiguration(configurationData);
        configurationManager.startConfiguration(configurationData.getId());

        DataSource ds1 = (DataSource) kernel.getGBean(ds1Name);
        DataSource ds2 = (DataSource) kernel.getGBean(ds2Name);
View Full Code Here

Examples of org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConfiguration()

        Collection<ConfigurationStore> repositoryStores = Collections.<ConfigurationStore>singleton(repositoryStore);
        SimpleConfigurationManager manager = new SimpleConfigurationManager(repositoryStores, artifactResolver, repositories);
       
        Artifact id = Artifact.create(CONFIG_ID);
        id = artifactResolver.queryArtifact(id);
        manager.loadConfiguration(id);
       
        Configuration config = manager.getConfiguration(id);
               
        // set context classloader
        ClassLoader classLoader = config.getConfigurationClassLoader();
View Full Code Here

Examples of org.apache.geronimo.system.configuration.RepositoryConfigurationStore.loadConfiguration()

        } else {
            if (targetRepository.exists() && targetRepository.isDirectory()) {
                Maven2Repository targetRepo = new Maven2Repository(targetRepository);
                ConfigurationStore configStore = new RepositoryConfigurationStore(targetRepo);
                Artifact pluginArtifact = PluginInstallerGBean.toArtifact(instance.getModuleId());
                ConfigurationData data = configStore.loadConfiguration(pluginArtifact);
                PluginInstallerGBean.addGeronimoDependencies(data, instance.getDependency(), useMavenDependencies.isIncludeVersion());
            } else {
                List<org.apache.maven.model.Dependency> includedDependencies = project.getOriginalModel().getDependencies();
                List<org.apache.maven.model.Dependency> artifacts = project.getDependencies();
                for (org.apache.maven.model.Dependency dependency : includedDependencies) {
View Full Code Here

Examples of org.apache.tuscany.sca.node.NodeFactory.loadConfiguration()

            NodeFactory factory = NodeFactory.getInstance();
            NodeConfiguration configuration = null;
            if (nodeConfiguration != null) {
                getLog().info("Loading node configuration: " + nodeConfiguration);
                configuration =
                    factory
                        .loadConfiguration(new FileInputStream(nodeConfiguration), nodeConfiguration.toURI().toURL());
            } else if (contribution != null) {
                getLog().info("Loading contribution: " + contribution);
                configuration = factory.createNodeConfiguration().addContribution(contribution.toURI().toURL());
            }
View Full Code Here

Examples of org.eclipse.equinox.internal.simpleconfigurator.manipulator.SimpleConfiguratorManipulatorImpl.loadConfiguration()

        if (bundleContext == null) {
            return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Cannot get bundleContext", new Exception());
        }
       
        try {
            BundleInfo[] infos = manipulator.loadConfiguration(bundleContext, null);
            BundleInfo weavingInfo = null;
            for (BundleInfo info : infos) {
                if (info.getSymbolicName().equals("org.eclipse.equinox.weaving.aspectj")) {
                    weavingInfo = info;
                    break;
View Full Code Here

Examples of org.eclipse.equinox.simpleconfigurator.manipulator.SimpleConfiguratorManipulator.loadConfiguration()

        if (bundleContext == null) {
            return new Status(IStatus.ERROR, ScalaJDTWeavingPlugin.ID, "Cannot get bundleContext", new Exception());
        }
       
        try {
            BundleInfo[] infos = manipulator.loadConfiguration(bundleContext, null);
            BundleInfo weavingInfo = null;
            for (BundleInfo info : infos) {
                if (info.getSymbolicName().equals("org.eclipse.equinox.weaving.aspectj")) {
                    weavingInfo = info;
                    break;
View Full Code Here

Examples of org.jpublish.view.ViewRenderer.loadConfiguration()

            Configuration viewRendererConfiguration = (Configuration) renderElements.next();
            String renderName = viewRendererConfiguration.getAttribute("name");
            String className = viewRendererConfiguration.getAttribute("classname");
            ViewRenderer renderer = (ViewRenderer) cl.loadClass(className).newInstance();
            renderer.setSiteContext(siteContext);
            renderer.loadConfiguration(viewRendererConfiguration);
            renderer.init();
            Debug.logInfo("Added renderer [" + renderName + "] - [" + className + "]", module);
            renderers.put(renderName, renderer);
        }
    }
View Full Code Here

Examples of org.rhq.plugins.apache.util.ApacheConfigurationUtil.loadConfiguration()

                String key = AugeasNodeSearch.getNodeKey(nodes.get(i), tree.getRootNode());
                Configuration config =
                    ApacheConfigurationUtil.componentToConfiguration(container, component, key, tree);
                //load configuration for related component and augeas node from tempfolder
                Configuration expectedConfig =
                    util.loadConfiguration(ApacheTestConstants.getConfigFilesPathForLoad() + File.separator
                        + component.getComponentName() + String.valueOf(i));
                assert config.equals(expectedConfig) : "Unexpected Resource configuration - \nExpected:\n\t"
                    + expectedConfig.toString(true) + "\nActual:\n\t" + config.toString(true);
            }
        }
View Full Code Here

Examples of org.sonatype.configuration.upgrade.SingleVersionUpgrader.loadConfiguration()

    if (upgrader != null) {
      log.debug(
          "Upgrading old Nexus configuration file (version {}) at {}", msg.getModelVersion(),
          file.getAbsolutePath());

      msg.setConfiguration(upgrader.loadConfiguration(file));

      while (!Configuration.MODEL_VERSION.equals(msg.getModelVersion())) {
        if (upgrader != null) {
          upgrader.upgrade(msg);
        }
View Full Code Here

Examples of org.sonatype.nexus.configuration.application.NexusConfiguration.loadConfiguration()

      throws IOException
  {
    try {
      NexusConfiguration nexusConfiguration;
      nexusConfiguration = TestContainer.getInstance().getPlexusContainer().lookup(NexusConfiguration.class);
      nexusConfiguration.loadConfiguration(true);
      return nexusConfiguration.getConfigurationModel();
    }
    catch (Exception e) {
      throw new IOException(e);
    }
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.