Examples of load()


Examples of com.sk89q.craftbook.mechanics.ic.ICConfiguration.load()

            Bukkit.getWorlds().get(0).getBlockAt(0, 255, 0).setType(Material.WALL_SIGN);

            CraftBookPlugin.inst().createDefaultConfiguration(new File(getGenerationFolder(), "ic-config.yml"), "ic-config.yml");
            ICConfiguration icConfiguration = new ICConfiguration(new YAMLProcessor(new File(getGenerationFolder(), "ic-config.yml"), true, YAMLFormat.EXTENDED), CraftBookPlugin.logger());

            icConfiguration.load();

            int missingComments = 0;

            final Set<String> missingDocuments = new HashSet<String>();
View Full Code Here

Examples of com.sk89q.util.yaml.YAMLProcessor.load()

                    e1.printStackTrace();
                }
            YAMLProcessor lang = new YAMLProcessor(f, true, YAMLFormat.EXTENDED);

            try {
                lang.load();
            } catch (Throwable e) {
                CraftBookPlugin.inst().getLogger().severe("An error occured loading the languages file for: " + language + "! This language WILL NOT WORK UNTIL FIXED!");
                e.printStackTrace();
                continue;
            }
View Full Code Here

Examples of com.sleepycat.je.util.DbLoad.load()

      loader.setDbName(dbName);
      loader.setInputReader(reader);
      loader.setNoOverwrite(false);
      loader.setTextFileMode(false);
      loader.setIgnoreUnknownConfig(true);
      loader.load();
   }

   /**
    * Returns whether the given entry starts with the given prefix bytes.
    * Used to determine whether a database key starts with a given FQN.
View Full Code Here

Examples of com.sonatype.security.ldap.persist.LdapConfigurationSource.load()

    LdapConfigurationSource source = this.lookup(LdapConfigurationSource.class);
    try {
      // Note: This test original also used configuration source, but it does not validate anymore
      // it is done by manager. Hence, validatio code added here below
      final CLdapConfiguration conf = source.load();
      final ValidationResponse vr = lookup(LdapConfigurationValidator.class).validateModel(new ValidationRequest<CLdapConfiguration>(conf));
      if (!vr.isValid()) {
        throw new InvalidConfigurationException(vr);
      }
    }
View Full Code Here

Examples of com.stimulus.archiva.domain.Config.load()

       Config.setApplicationPath(appPath);
       Config.clearViewDirectory();
       Config.clearTempDirectory();
   
       try {
           conf.load();
           conf.getVolumes().startDiskSpaceCheck();
           String recover = System.getProperty("rearchive");
        if (recover!=null && recover.equalsIgnoreCase("yes"))
          MessageService.recoverNoArchiveMessages(null);
         
View Full Code Here

Examples of com.stormpath.samples.todos.lang.OrderPreservingProperties.load()

    public DefaultExceptionMapper() {
        //should be cleaner, but this is fine for a demo:
        InputStream is = ClassUtils.getResourceAsStream("restErrors.properties");
        OrderPreservingProperties props = new OrderPreservingProperties();
        props.load(is);
        this.exceptionMappings = toRestErrors(props);
    }

    @Override
    public Response toResponse(Throwable t) {
View Full Code Here

Examples of com.subhajit.diagrams.codeanalysis.Digest.load()

        if (!tempDir.mkdirs()) {
          throw new IOException(
              "Could not create temporary directory - "
                  + tempDir.getAbsolutePath());
        }
        Set<MethodInfo> methods = digest.load(className).keySet();
        for (MethodInfo method : methods) {
          ctx.setMethod(method);
          try {
            // Generate the sequence diagram specification.
            final String sequenceDiagramSpec = gen
View Full Code Here

Examples of com.sun.appserv.ha.spi.BackingStore.load()

    }
   
    public SingleSignOnEntry loadSSO(String ssoId, ReplicationSingleSignOn repSingleSignOn) throws IOException {
        try {
            BackingStore backingStore = parent.getBackingStore();
            SimpleMetadata metaData = (SimpleMetadata) backingStore.load(ssoId, null);
            if(_logger.isLoggable(Level.FINE)) {
                _logger.fine("ReplicationSSOStore>>loadSSO:id=" + ssoId +
                        ", metaData=" + metaData);
            }
            return deserializeAndSave(metaData);
View Full Code Here

Examples of com.sun.cli.jmx.support.AliasMgrHashMapImpl.load()

  {
    // setup alias mgr
    final AliasMgrHashMapImpl  aliasImpl  = new AliasMgrHashMapImpl();
    try
    {
      aliasImpl.load( new java.io.File( AliasMgrHashMapImpl.DEFAULT_FILENAME ) );
    }
    catch( Exception e )
    {
      // ignore
    }
View Full Code Here

Examples of com.sun.enterprise.deployment.interfaces.pluggable.ArchiveLoader.load()

                               if(loader instanceof AppArchiveLoader) {
                                   // set the J2eeApplication bean                           
                                   ((AppArchiveLoader)loader).
                                            setJ2eeAppBean(j2eeAppBeans[i]);
                                   try {
                                       loader.load((ArchiveDescriptor)descriptor,
                                                                         false);
                                   } catch (Exception ex) {
                                       deployed = false;                                      
                                       unloadEjbs(jsr77)
                                       // log the exception
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.