Examples of ConfigurationManager


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

            GBeanData configurationManagerData = new GBeanData(configurationManagerName, ConfigurationManagerImpl.GBEAN_INFO);
            configurationManagerData.setReferencePatterns("Stores", Collections.singleton(store.getName()));
            kernel.loadGBean(configurationManagerData, getClass().getClassLoader());
            kernel.startGBean(configurationManagerName);
            ConfigurationManager configurationManager = (ConfigurationManager) kernel.getProxyManager().createProxy(configurationManagerName, ConfigurationManager.class);

            ObjectName baseConfigName = configurationManager.load(defaultParentId[0]);
            kernel.startGBean(baseConfigName);

            ObjectName serverInfoObjectName = ObjectName.getInstance(j2eeContext.getJ2eeDomainName() + ":name=ServerInfo");
            GBeanData serverInfoGBean = new GBeanData(serverInfoObjectName, BasicServerInfo.GBEAN_INFO);
            serverInfoGBean.setAttribute("baseDirectory", ".");
View Full Code Here

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

        return parentCL;
    }

    private void loadAncestors(Kernel kernel, List parentId, List loadedAncestors) throws DeploymentException {
        if (kernel != null && parentId != null) {
            ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);

            try {
                for (Iterator iterator = parentId.iterator(); iterator.hasNext();) {
                    URI uri = (URI) iterator.next();
                    loadedAncestors.addAll(configurationManager.loadRecursive(uri));
                }
            } catch (Exception e) {
                throw new DeploymentException("Unable to load parents", e);
            } finally {
                ConfigurationUtil.releaseConfigurationManager(kernel, configurationManager);
View Full Code Here

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

        List parentId = configurationData.getParentId();
        if (kernel == null || parentId == null || parentId.isEmpty()) {
            throw new DeploymentException("neither domain and server nor any way to determine them was provided for configuration " + configurationData.getId());
        }
        URI parent = (URI) parentId.get(0);
        ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);

        try {
            boolean loaded = false;
            if (!configurationManager.isLoaded(parent)) {
                configurationManager.load(parent);
                loaded = true;
            }
            try {
                ObjectName parentName = Configuration.getConfigurationObjectName(parent);
                configurationData.setDomain((String) kernel.getAttribute(parentName, "domain"));
                configurationData.setServer((String) kernel.getAttribute(parentName, "server"));
            } catch (Exception e) {
                throw new DeploymentException("Unable to copy domain and server from parent configuration", e);
            } finally {
                if (loaded) {
                    //we need to unload again so the loadedAncestors list will be in the correct order to start configs.
                    configurationManager.unload(parent);
                }
            }
        } catch (Exception e) {
            throw new DeploymentException("Unable to load first parent of configuration " + configurationData.getId(), e);
        } finally {
View Full Code Here

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

            monitor.foundConfigurations((URI[]) configs.toArray(new URI[configs.size()]));

            // load the rest of the configurations
            try {
                ConfigurationManager configurationManager = ConfigurationUtil.getConfigurationManager(kernel);
                try {
                    for (Iterator i = configs.iterator(); i.hasNext();) {
                        URI configID = (URI) i.next();
                        monitor.configurationLoading(configID);
                        List list = configurationManager.loadRecursive(configID);
                        monitor.configurationLoaded(configID);
                        monitor.configurationStarting(configID);
                        for (Iterator iterator = list.iterator(); iterator.hasNext();) {
                            ObjectName name = (ObjectName) iterator.next();
                             kernel.startRecursiveGBean(name);
View Full Code Here

Examples of org.apache.hadoop.hbase.conf.ConfigurationManager

      masterAddressTracker.start();

      clusterStatusTracker = new ClusterStatusTracker(zooKeeper, this);
      clusterStatusTracker.start();
    }
    this.configurationManager = new ConfigurationManager();

    rpcServices.start();
    putUpWebUI();
  }
View Full Code Here

Examples of org.apache.jsieve.ConfigurationManager

    public void init(MailetConfig config) throws MessagingException {
       
        super.init(config);

        try {
            final ConfigurationManager configurationManager = new ConfigurationManager();
            final int logLevel;
            if (verbose) {
                logLevel = CommonsLoggingAdapter.TRACE;
            } else if (quiet) {
                logLevel = CommonsLoggingAdapter.FATAL;
            } else {
                logLevel = CommonsLoggingAdapter.WARN;
            }
            log = new CommonsLoggingAdapter(this, logLevel);
            configurationManager.setLog(log);
            factory = configurationManager.build();
        } catch (SieveConfigurationException e) {
            throw new MessagingException("Failed to load standard Sieve configuration.", e);
        }
    }
View Full Code Here

Examples of org.apache.log4j.lf5.viewer.configure.ConfigurationManager

    addTableModelProperties();

    //
    // Configure ConfigurationManager
    //
    _configurationManager = new ConfigurationManager(this, _table);

  }
View Full Code Here

Examples of org.apache.qpid.server.configuration.ConfigurationManager

            // Need to remove the responsibility for offering configuration to other class.
            _logger.info("Cannot offer remaining config to other plugins, can't find app registry");
            return;
        }

        final ConfigurationManager configurationManager = appRegistry.getConfigurationManager();
        // Process the elements in the configuration
        for (String element : elements)
        {
            Configuration handled = element.length() == 0 ? configuration : configuration.subset(element);

            String configurationElement = element;
            if (path.length() > 0)
            {
                configurationElement = path + "." + configurationElement;
            }

            List<ConfigurationPlugin> handlers = configurationManager.getConfigurationPlugins(configurationElement, handled);

            if(_logger.isDebugEnabled())
            {
                _logger.debug("For '" + element + "' found handlers (" + handlers.size() + "):" + handlers);
            }
View Full Code Here

Examples of org.apache.savan.configuration.ConfigurationManager

    /**
     *
     * @param ctxt
     */
    protected void activate(ComponentContext ctxt) {
        ConfigurationManager manager = null;
        try {
            if (log.isDebugEnabled()) {
                log.debug("Eventing bundle is activated ");
            }
            manager = new ConfigurationManager(new RegistryBasedConfigurator());
            manager.configure();

            configContext.setProperty(SavanConstants.CONFIGURATION_MANAGER, manager);
        } catch (Throwable e) {
            log.error("Error occured while activating Eventing bundle", e);
        }
View Full Code Here

Examples of org.apache.uima.resource.ConfigurationManager

      aAdditionalParams.put(Resource.PARAM_RESOURCE_MANAGER, resMgr);
    }
   
    // Share the configMgr so that (re)configure actions affect all instances
   
    ConfigurationManager configMgr = (ConfigurationManager) aAdditionalParams.get(Resource.PARAM_CONFIG_MANAGER);
    if (configMgr == null) {
      configMgr = UIMAFramework.newConfigurationManager();
      aAdditionalParams.put(Resource.PARAM_CONFIG_MANAGER, configMgr);
    }
   
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.