Examples of Configurator


Examples of ch.qos.logback.classic.jmx.Configurator

  public void end(InterpretationContext ec, String name) throws ActionException {

  }

  public void register() {
    ConfiguratorMBean configuratorMBean = new Configurator((LoggerContext) context);

    MBeanServer mbs = ManagementFactory.getPlatformMBeanServer();
    try {
      ObjectName on = new ObjectName(DOMAIN + ":Name=" + context.getName()
          + ",Type=" + configuratorMBean.getClass().getName());

      // StandardMBean mbean = new StandardMBean(configuratorMBean,
      // ConfiguratorMBean.class);
      if (mbs.isRegistered(on)) {
        mbs.unregisterMBean(on);
View Full Code Here

Examples of ch.qos.logback.classic.spi.Configurator

    StatusListenerConfigHelper.installIfAsked(loggerContext);
    URL url = findURLOfDefaultConfigurationFile(true);
    if (url != null) {
      configureByResource(url);
    } else {
      Configurator c = EnvUtil.loadFromServiceLoader(Configurator.class);
      if (c != null) {
        try {
          c.setContext(loggerContext);
          c.configure(loggerContext);
        } catch (Exception e) {
          throw new LogbackException(String.format("Failed to initialize Configurator: %s using ServiceLoader",
              c != null ? c.getClass().getCanonicalName() : "null"), e);
        }
      } else {
        BasicConfigurator.configure(loggerContext);
      }
    }
View Full Code Here

Examples of com.dianping.cat.consumer.transaction.Configurator

import com.dianping.cat.consumer.transaction.TransactionAnalyzerTest;

public class RealtimeConfigConfiguration extends AbstractResourceConfigurator {

  public static void main(String[] args) {
    generatePlexusComponentsXmlFile(new Configurator());
  }
View Full Code Here

Examples of com.espertech.esper.core.Configurator

    private static EPServiceProviderSPI getProviderInternal(Configuration configuration, String providerURINonNull) {
        // cluster-wide configuration
        if (configuration != null && configuration.getEngineDefaults().getCluster() != null && configuration.getEngineDefaults().getCluster().isEnabled()) {
            String className = "com.espertech.ehc.cn.cepproxy.EPServiceClusterConfigurator";
            Configurator configurator = (Configurator) JavaClassHelper.instantiate(Configurator.class, className);
            return configurator.configure(new ConfiguratorContext(providerURINonNull, runtimes), configuration);
        }

        return new EPServiceProviderImpl(configuration, providerURINonNull, runtimes);
    }
View Full Code Here

Examples of com.espertech.esper.core.service.Configurator

    private static EPServiceProviderSPI getProviderInternal(Configuration configuration, String providerURINonNull) {
        // cluster-wide configuration
        if (configuration != null && configuration.getEngineDefaults().getCluster() != null && configuration.getEngineDefaults().getCluster().isEnabled()) {
            String className = "com.espertech.ehc.cn.cepproxy.EPServiceClusterConfigurator";
            Configurator configurator = (Configurator) JavaClassHelper.instantiate(Configurator.class, className);
            return configurator.configure(new ConfiguratorContext(providerURINonNull, runtimes), configuration);
        }

        return new EPServiceProviderImpl(configuration, providerURINonNull, runtimes);
    }
View Full Code Here

Examples of com.paymentech.orbital.sdk.configurator.Configurator

            buildConfiguratorContext.put("engine.authorizationURI", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "authorizationURI"));
            buildConfiguratorContext.put("engine.sdk_version", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "sdkVersion"));
            buildConfiguratorContext.put("engine.ssl.socketfactory", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "sslSocketFactory"));
            buildConfiguratorContext.put("Response.response_type", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "responseType"));
            String configFileLocation = System.getProperty("ofbiz.home") + configFile;
            Configurator config = Configurator.getInstance(configFileLocation);
            buildConfiguratorContext.putAll(config.getConfigurations());
            config.setConfigurations(buildConfiguratorContext);
        } catch (InitializationException e) {
            Debug.logError("Orbital Configurator Initialization Error: " + e.getMessage(), module);
            e.printStackTrace();
        }
        return buildConfiguratorContext;
View Full Code Here

Examples of com.paymentech.orbital.sdk.configurator.Configurator

            buildConfiguratorContext.put("engine.authorizationURI", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "authorizationURI"));
            buildConfiguratorContext.put("engine.sdk_version", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "sdkVersion"));
            buildConfiguratorContext.put("engine.ssl.socketfactory", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "sslSocketFactory"));
            buildConfiguratorContext.put("Response.response_type", getPaymentGatewayConfigValue(delegator, paymentGatewayConfigId, "responseType"));
            String configFileLocation = System.getProperty("ofbiz.home") + configFile;
            Configurator config = Configurator.getInstance(configFileLocation);
            buildConfiguratorContext.putAll(config.getConfigurations());
            config.setConfigurations(buildConfiguratorContext);
        } catch (InitializationException e) {
            Debug.logError("Orbital Configurator Initialization Error: " + e.getMessage(), module);
            e.printStackTrace();
        }
        return buildConfiguratorContext;
View Full Code Here

Examples of com.sun.appserv.addons.Configurator

            }
        } catch (AddonException aoe) {
            throw new AddonFatalException(aoe);
        }

        Configurator conf = Configurator.class.cast(obj);
        InstallationContext ic = new InstallationContext();
        ic.setInstallationDirectory(getInstallRoot());
        ConfigurationContext cc = new ConfigurationContext();
        cc.setInstallationContext(ic);
        cc.setDomainDirectory(getDomainRoot());
        cc.setConfigurationType(type);
        if (type.equals(ConfigurationContext.ConfigurationType.INSTANCE))
            cc.setAMXDomainRoot(getAMXDomainRoot());
        setAdminCredentials(cc);
        try {
            switch (addonStatus) {
                case CONFIGURE :
                    checkDependencies(addonName);
                    conf.configure(cc);
                    ar.setStatus(addonName, AddonRegistry.status.CONFIGURE);
                    ar.setStatus(addonName, AddonRegistry.status.ENABLE);
                    break;
                case ENABLE :
                    conf.enable(cc);
                    ar.setStatus(addonName, AddonRegistry.status.ENABLE);
                    break;
                case DISABLE :
                    conf.disable(cc);
                    ar.setStatus(addonName, AddonRegistry.status.DISABLE);
                    break;
                case UNCONFIGURE :
                    conf.unconfigure(cc);
                    ar.setStatus(addonName, AddonRegistry.status.UNCONFIGURE);
                    break;
                case UPGRADE :
                    ar.setStatus(oldVersion.getName(), AddonRegistry.status.REMOVE);
                    conf.upgrade(cc, oldVersion);
                    ar.setStatus(addonName, AddonRegistry.status.CONFIGURE);
                    ar.setStatus(addonName, AddonRegistry.status.ENABLE);
                    // move old component to .deleted directory
                    break;
                default :
View Full Code Here

Examples of config.Configurator

        return i - starting_i;
    }

    void initConfigurator() throws Exception {
        configurator = new Configurator();

        String workspace = getWorkSpaceArg();
        String input = workspace + "/src/vm/share/utilities/BuildFlags.hpp";

        configurator.readProductFile(product);
View Full Code Here

Examples of de.idos.updates.configuration.Configurator

        new File(repository, "1.0.1").mkdir();
    }

    @Given("^a file called 'update.properties' in the working directory$")
    public void a_file_called_update_properties_in_the_working_directory() throws Throwable {
        Configurator configurator = createBaseProperties();
        configurator.setRepositoryLocationForLatestVersionTo(Repo_From_WorkingDir);
        configurator.saveConfiguration();
        File repository = new File(Repo_From_WorkingDir, FilesystemRepository.AVAILABLE_VERSIONS);
        repository.mkdirs();
        new File(repository, "1.0.2").mkdir();
    }
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.