Examples of load()


Examples of org.snmp4j.agent.SerializableManagedObject.load()

            (SerializableManagedObject) mos.get(moid.getOID());
        if (mo != null) {
          if (logger.isDebugEnabled()) {
            logger.debug("Loading data for object " + moid.getOID());
          }
          mo.load(input);
        }
        input.skipManagedObject(moid);
      }
    }
  }
View Full Code Here

Examples of org.sonatype.nexus.bootstrap.PropertyMap.load()

      URL url = Resource.newResource(arg).getURL();

      if (url.getFile().toLowerCase(Locale.ENGLISH).endsWith(".properties")) {
        log.info("Loading properties: {}", url);

        props.load(url);
      }
      else {
        log.info("Applying configuration: {}", url);

        XmlConfiguration configuration = new XmlConfiguration(url);
View Full Code Here

Examples of org.spout.cereal.config.annotated.AnnotatedObjectConfiguration.load()

        new AnnotatedObjectConfiguration(config);
    for (Entry<String, VanillaBiome> entry : BY_NAME.entrySet()) {
      biomes.add(entry.getValue(), entry.getKey());
    }
    try {
      biomes.load();
    } catch (ConfigurationException ex) {
      ex.printStackTrace();
    }
  }
View Full Code Here

Examples of org.spout.cereal.config.yaml.YamlConfiguration.load()

  @Override
  public RecipeYaml load(InputStream in) {
    Map<String, Recipe> recipes = new HashMap<String, Recipe>();
    YamlConfiguration config = new YamlConfiguration(in);
    try {
      config.load();
    } catch (ConfigurationException ex) {
      Spout.getLogger().warning("Unable to load recipes.yml: " + ex.getMessage());
    }
    ConfigurationNode recipesNode = config.getChild("recipes");
    for (String key : recipesNode.getKeys(false)) {
View Full Code Here

Examples of org.spoutcraft.launcher.yml.YAMLProcessor.load()

  public static YAMLProcessor getMirrorsYML() {
    updateMirrorsYMLCache();
    YAMLProcessor config = new YAMLProcessor(mirrorsYML, false);
    try {
      config.load();
    } catch (IOException e) {
      e.printStackTrace();
    }
    return config;
  }
View Full Code Here

Examples of org.springframework.batch.core.jsr.configuration.xml.JsrXmlApplicationContext.load()

    Resource batchXml = new ClassPathResource("/META-INF/batch.xml");
    Resource jobXml = new ClassPathResource(previousJobExecution.getJobConfigurationName());

    if(batchXml.exists()) {
      batchContext.load(batchXml);
    }

    if(jobXml.exists()) {
      batchContext.load(jobXml);
    }
View Full Code Here

Examples of org.springframework.boot.env.PropertySourcesLoader.load()

        Resource resource = this.resourceLoader.getResource(this.environment
            .resolvePlaceholders(location));
        String[] profiles = this.environment.getActiveProfiles();
        for (int i = profiles.length; i-- > 0;) {
          String profile = profiles[i];
          loader.load(resource, profile);
        }
        loader.load(resource);
      }

      MutablePropertySources loaded = loader.getPropertySources();
View Full Code Here

Examples of org.springframework.context.support.GenericGroovyApplicationContext.load()

    assertEquals("SpringSource", company);
  }

  public void testLoadingMultipleConfigFilesWithRelativeClass() {
    GenericGroovyApplicationContext ctx = new GenericGroovyApplicationContext();
    ctx.load(GroovyApplicationContextTests.class, "applicationContext2.groovy", "applicationContext.groovy");
    ctx.refresh();

    Object framework = ctx.getBean("framework");
    assertNotNull("could not find framework bean", framework);
    assertEquals("Grails", framework);
View Full Code Here

Examples of org.springframework.context.support.GenericXmlApplicationContext.load()

        System.out.println("Invalid choice\n\n");
        System.out.print("Enter you choice: ");
      }
    }

    context.load("classpath:META-INF/spring/integration/*-context.xml");
    context.registerShutdownHook();
    context.refresh();

    final PersonService personService = context.getBean(PersonService.class);

View Full Code Here

Examples of org.springframework.orm.hibernate3.HibernateTemplate.load()

        HibernateTemplate ht = getHibernateTemplate(tableName, tableName, null, ACTION_TYPE_LOAD);

        // load by primary key
        FormRow row = null;
        try {
            row = (FormRow) ht.load(tableName, primaryKey);
        } catch (ObjectRetrievalFailureException e) {
            // not found, ignore
        }
        return row;
    }
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.