Examples of load()


Examples of org.brickred.socialauth.SocialAuthConfig.load()

    SocialAuthConfig config = SocialAuthConfig.getDefault();
    InputStream in = null;
    try {
      in = DefaultSASFSocialAuthManager.class.getClassLoader()
          .getResourceAsStream(props.getOauthPropertiesFileString());
      config.load(in);
      this.socialAuthConfig = config;
    } catch (Exception e) {
      throw new SASFSecurityException(e);
    }
  }
View Full Code Here

Examples of org.brixcms.plugin.menu.Menu.load()

     */
    @Override
    public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) {
        NodeAdapter adapter = new NodeAdapter(getModelObject());
        Menu menu = new Menu();
        menu.load(adapter.getMenuNode());

        final Response response = getResponse();
        response.write("<ul");
        if (!Strings.isEmpty(adapter.getOuterUlCssClass())) {
            response.write(" class=\"");
View Full Code Here

Examples of org.broad.igv.dev.api.LoadHandler.load()

                // This should be deprecated
                loadListFile(locator, newTracks, genome);
            } else if (handler != null) {
                //Custom loader specified
                log.info(String.format("Loading %s with %s", path, handler));
                handler.load(path, newTracks);
            } else if (AttributeManager.isSampleInfoFile(locator)) {
                // This might be a sample information file.
                AttributeManager.getInstance().loadSampleInfo(locator);
            } else {
                MessageUtils.showMessage("<html>Unknown file type: " + path + "<br>Check file extension");
View Full Code Here

Examples of org.broad.igv.track.TrackLoader.load()

//                                //System.out.println("path " + locator.getPath());
//                            }else{
//                                continue;
//                            }
//                            errorWriter.println("Loading " + locator);
                            loader.load(locator, curGenome);
                        } catch (Exception e) {
                            recordError(locator, e, failedFiles);
                        }

                        counter = (counter + 1) % clearInterval;
View Full Code Here

Examples of org.bukkit.Chunk.load()

                chunkDelays.put(chunkString, System.currentTimeMillis() + length.getMillis());
            else
                chunkDelays.put(chunkString, (long) 0);
            dB.echoDebug(scriptEntry, "...added chunk "+chunk.getX() + ", "+ chunk.getZ() + " with a delay of " + length.getSeconds() + " seconds.");
            if(!chunk.isLoaded())
                chunk.load();
            break;
        case REMOVE:
            if(chunkDelays.containsKey(chunkString)) {
                chunkDelays.remove(chunkString);
                dB.echoDebug(scriptEntry, "...allowing unloading of chunk "+chunk.getX() + ", "+ chunk.getZ());
View Full Code Here

Examples of org.bukkit.configuration.file.FileConfiguration.load()

    plugin.tiers.clear();
    FileConfiguration cs = new YamlConfiguration();
    File f = new File(plugin.getDataFolder(), "tier.yml");
    if (f.exists())
      try {
        cs.load(f);
      } catch (Exception e) {
        if (plugin.getDebug())
          plugin.log.warning(e.getMessage());
      }
    for (String name : cs.getKeys(false)) {
View Full Code Here

Examples of org.bukkit.configuration.file.YamlConfiguration.load()

        ItemStack[] armor = this.armor.remove(p);
       
        // If we can't restore from memory, restore from file
        if (items == null || armor == null) {
            YamlConfiguration config = new YamlConfiguration();
            config.load(file);
           
            // Get the items and armor lists
            List<?> itemsList = config.getList("items");
            List<?> armorList = config.getList("armor");
           
View Full Code Here

Examples of org.bukkit.util.config.Configuration.load()

  }

  public static Configuration getModPackYML() {
    updateModPackYML();
    Configuration config = new Configuration(getModPackYMLFile());
    config.load();
    return config;
  }

  public static void updateModPackYML() {
    updateModPackYML(false);
View Full Code Here

Examples of org.candlepin.common.config.PropertiesFileConfiguration.load()

        File configFile = new File(ConfigProperties.DEFAULT_CONFIG_FILE);

        if (configFile.canRead()) {
            log.debug("Loading system configuration");
            // First, read the system configuration
            systemConfig.load(configFile);
            log.debug("System configuration: " + systemConfig);
        }

        // load the defaults
        MapConfiguration defaults = new MapConfiguration(
View Full Code Here

Examples of org.cassandraunit.CQLDataLoader.load()

         
          CQLDataLoader cqlDataLoader = new CQLDataLoader(session);
          while (datasetIterator.hasNext()) {
            String next = datasetIterator.next();
            boolean dropAndCreateKeyspace = datasetIterator.previousIndex() == 0;
            cqlDataLoader.load(new ClassPathCQLDataSet(next, dropAndCreateKeyspace, dropAndCreateKeyspace, keyspace));
          }
          break;
        default:
          dataset = dataSetLocations(testContext, cassandraDataSet);
          datasetIterator = dataset.listIterator();
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.