Examples of Config


Examples of com.sonyericsson.hudson.plugins.gerrit.trigger.config.Config

        assertTrue("Listener has not been registered", list.size() > 0);

        buildListenerLatch = new CountDownLatch(2);
        GerritServer gerritServer = PluginImpl.getInstance().getServer(PluginImpl.DEFAULT_SERVER_NAME);

        Config config = (Config)gerritServer.getConfig();
        config.setBuildScheduleDelay(0);

        gerritServer.setConfig(config);

        DuplicatesUtil.createGerritTriggeredJob(j, "projectX");
        server.waitForCommand(GERRIT_STREAM_EVENTS, 2000);
View Full Code Here

Examples of com.stimulus.archiva.domain.Config

     return serviceDelegate.getStatus();
   }
  
 
    public void run() {
      Config config = Config.getConfig();
      if (config!=null) {
          for (Volume v : config.getVolumes().getVolumes()) {
                 File file = new File(v.getPath()+File.separator+Volumes.INFO_FILE);
                 // something has changed
                  if (file.exists() && v.getStatus()==Volume.Status.EJECTED ||
                    !file.exists() && v.getStatus()!=Volume.Status.EJECTED) {
                     try {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.Config

        Result result = super.validate(cce); // Before doing custom validation do basic validation
        String choice = cce.getChoice();
        try {
            if (choice.equals(StaticTest.ADD) || choice.equals(StaticTest.VALIDATE)) {
                final IdentityAssertionTrust iat = (IdentityAssertionTrust) cce.getObject();
                Config c = (Config) ((SecurityService) cce.getClassObject()).parent();
                boolean isDefault = iat.isIsDefault();
                if (isDefault) {
                    String trustId = checkIsDefault(c);
                    if (flag && (trustId != null)) {
                        result.failed(_strMgr.getString("DefaultTrustConfigExists", trustId));
                    }
                }
            }
            if (choice.equals(StaticTest.UPDATE)) {
                if (ConfigBean.toBoolean((String) cce.getObject())) {
                    final IdentityAssertionTrust iat = (IdentityAssertionTrust) cce.getClassObject();
                    final Config c = (Config) ((SecurityService) iat.parent()).parent();
                    String trustId = checkIsDefault(c);
                    if (flag) {
                        result.failed(_strMgr.getString("DefaultTrustConfigExists", trustId));
                    }
                }
View Full Code Here

Examples of com.sun.tools.internal.jxc.gen.config.Config

     * @throws IOException
     *     If any IO errors occur.
     */
    public ConfigReader( AnnotationProcessorEnvironment env, Collection <? extends TypeDeclaration> classes, File xmlFile, ErrorHandler errorHandler)throws SAXException,IOException{
        this.env = env;
        Config config = parseAndGetConfig(xmlFile,errorHandler);
        checkAllClasses(config,classes);
        String path =   xmlFile.getAbsolutePath();
        String xmlPath = path.substring(0,path.lastIndexOf(File.separatorChar));
        schemaOutputResolver = createSchemaOutputResolver(config,xmlPath);

View Full Code Here

Examples of com.sun.tools.jxc.gen.config.Config

     * @throws IOException
     *     If any IO errors occur.
     */
    public ConfigReader( AnnotationProcessorEnvironment env, Collection <? extends TypeDeclaration> classes, File xmlFile, ErrorHandler errorHandler)throws SAXException,IOException{
        this.env = env;
        Config config = parseAndGetConfig(xmlFile,errorHandler);
        checkAllClasses(config,classes);
        String path =   xmlFile.getAbsolutePath();
        String xmlPath = path.substring(0,path.lastIndexOf(File.separatorChar));
        schemaOutputResolver = createSchemaOutputResolver(config,xmlPath);

View Full Code Here

Examples of com.tll.config.Config

  @Override
  @BeforeClass
  protected void beforeClass() {
    // create the db shell first (before test injector creation) to avoid db4o
    // file lock when objectcontainer is instantiated
    final Config cfg = Config.load();
    cfg.setProperty(Db4oDaoModule.ConfigKeys.DB4O_EMPLOY_SPRING_TRANSACTIONS.getKey(), false);
    final Injector i = buildInjector(new TestDb4oDaoModule(cfg), new Db4oDbShellModule() );
    final IDbShell dbs = i.getInstance(IDbShell.class);
    dbs.delete();
    dbs.create();
View Full Code Here

Examples of com.tomgibara.pronto.config.Config

    engine.setState(State.constructed);
    return engine;
  }
 
  static ControllerSettings createSettings(Class<? extends ControllerSettings> clss, String str) {
    Config config = ConfigFactory.getInstance().newConfig(new StringConfigSource(str), null);
    return config.adaptSettings(null, false, clss);
  }
View Full Code Here

Examples of com.typesafe.config.Config

            } else if (!configFile.canRead()) {
                log.error("Your configuration at {} is not readable, cannot continue without it.", configFile.getAbsoluteFile());
                throw new IllegalStateException("Unreadable configuration file " + configFile.getAbsolutePath());
            }
        }
        final Config config = ConfigFactory.parseFileAnySyntax(configFile);
        if (config.isEmpty() && !isTest) {
            log.error("Your configuration file at {} is empty, cannot continue without content.", configFile.getAbsoluteFile());
            throw new IllegalStateException("Empty configuration file " + configFile.getAbsolutePath());
        /*
         *
         * This is merging the standard bundled application.conf with our graylog2-web-interface.conf.
         * The application.conf must always be empty when packaged so there is nothing hidden from the user.
         * We are merging, because the Configuration object already contains some information the web-interface needs.
         *
         */
        }
        return new Configuration(
                config.withFallback(configuration.getWrappedConfiguration().underlying())
        );
    }
View Full Code Here

Examples of com.volantis.mcs.runtime.Config

        }
    }
   
    // Javadoc inherited from interface.
    public boolean useAppServerDataSource() {
        Config c = volantisBean.getConfig();

        if (logger.isDebugEnabled()) {
            logger.debug(CONFIG_WEBAPP_ELEMENT +
                         ".use-server-connection-pool = " +
                         c.getAttributeValue(CONFIG_WEBAPP_ELEMENT,
                                             "use-server-connection-pool"));
        }

        return c.getBooleanAttributeValue(CONFIG_WEBAPP_ELEMENT,
                                          "use-server-connection-pool");
    }
View Full Code Here

Examples of com.walmartlabs.mupd8.application.Config

  @SuppressWarnings("unchecked")
    public void testConfigDirLoad() throws Exception {
        String dir =
            this.getClass().getClassLoader().getResource( "testapp").getPath();
        Config config = new Config( new File( dir));
        String[] paths = { "mupd8", "application", "TestApp", "performers", "K1Updater", "class"};
        String k1Updater = ( String) config.getScopedValue( paths);
        assertEquals("check performer class value", "com.walmartlabs.mupd8.examples.KnUpdaterJson", k1Updater);
        String[] cassPath = { "mupd8", "slate_store", "keyspace"};
        assertEquals("check slate_store" , "Mupd8", ( String) config.getScopedValue( cassPath));

        JSONObject performerConfig = config.workerJSONs.get("K1Updater");
        assertEquals("workerJSONs defined in directory configuration", k1Updater, (String) performerConfig.get("class"));

        String sys =
            this.getClass().getClassLoader().getResource( "testapp/sys_old").getPath();
        String app =
            this.getClass().getClassLoader().getResource( "testapp/app_old").getPath();

        Config newConfig = new Config(sys, app);
        String[] clPath = { "mupd8", "application" };
        java.util.HashMap<String, Object> testApp = ( java.util.HashMap<String, Object>) newConfig.getScopedValue( clPath);
        String firstKey = ( String) testApp.keySet().toArray()[0];
        assertEquals("contains TestApp", "TestApp", firstKey);

        performerConfig = newConfig.workerJSONs.get("K1Updater");
        assertEquals("workerJSONs defined in sys/app configuration", "com.walmartlabs.mupd8.examples.KnUpdater", (String) performerConfig.get("class"));
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.