Examples of load()


Examples of net.bnubot.core.ConnectionSettings.load()

        Settings.read("bnubot", "numBots", "1"));
    } catch(Exception e) {}
    Settings.write("bnubot", "numBots", Integer.toString(numBots));
   
    ConnectionSettings cs = new ConnectionSettings();
    cs.load(1);
   
    boolean forceConfig = false;
    String plugins[] = null;
   
    for(int i = 0; i < args.length; i++) {
View Full Code Here

Examples of net.bnubot.settings.DatabaseSettings.load()

  private static Connection conn = null;

  public static boolean validate() {
    DatabaseSettings settings = new DatabaseSettings();
    settings.load();

    // Get the Cayenne map
    DataDomain domain = Configuration.getSharedConfiguration().getDomain("BNUBotDomain");
    DataNode dataNode = domain.getNode("BNUBotDataNode");
    DataMap dataMap = domain.getMap("BNUBotMap");
View Full Code Here

Examples of net.bnubot.util.SortedProperties.load()

        // Failed to determine the bot version
        Out.fatalException(new FileNotFoundException(vpPath));
      }

      Properties versionprops = new SortedProperties();
      versionprops.load(is);
      is.close();

      Integer VER_SVN_REVISION_FILE = null;
      if(versionprops.containsKey(sReleaseType))
        RELEASE_TYPE = ReleaseType.valueOf((String)versionprops.get(sReleaseType));
View Full Code Here

Examples of net.canarymod.database.DataAccess.load()

            }
        }
        try {
            for (HashMap<String, Object> temp : stuff) {
                DataAccess newData = typeTemplate.getInstance();
                newData.load(temp);
                datasets.add(newData);
            }

        }
        catch (DatabaseAccessException dae) {
View Full Code Here

Examples of net.citizensnpcs.questers.Quester.load()

  @Override
  public void loadState(HumanNPC npc) {
    if (!npc.isType("quester"))
      npc.registerType("quester");
    Quester quester = npc.getType("quester");
    quester.load(profiles, npc.getUID());
    saveState(npc);
  }

  @Override
  public void saveState(HumanNPC npc) {
View Full Code Here

Examples of net.csdn.bootstrap.loader.Loader.load()

        boolean disableHttp = settings.getAsBoolean("http.disable", false);
        boolean disableThrift = settings.getAsBoolean("thrift.disable", true);

        Loader loggerLoader = new LoggerLoader();

        loggerLoader.load(settings);


        if (ServiceFramwork.scanService.getLoader() == null || (ServiceFramwork.scanService.getLoader() == DefaultScanService.class)) {
            ServiceFramwork.scanService.setLoader(ServiceFramwork.class);
        }
View Full Code Here

Examples of net.datacrow.console.components.lists.elements.DcObjectListElement.load()

        IViewComponent vc = (IViewComponent) list;
       
        if (render && !vc.isIgnoringPaintRequests()) {
           
            c.setFont(ComponentFactory.getStandardFont());
            c.load();
           
            if (c.getDcObject() != null) {
               
                if (c.getDcObject().getModule().canBeLend()) {
                    Long daysTillOverdue = (Long) c.getDcObject().getValue(DcObject._SYS_LOANDAYSTILLOVERDUE);
View Full Code Here

Examples of net.datacrow.core.modules.ModuleJar.load()

                    } else if (name.toLowerCase().endsWith(".jar")) {
                        // check if the custom module does not already exist
                        if (DcModules.get(name.substring(0, name.indexOf(".jar"))) == null) {
                            writeToFile(bis, new File(DataCrow.moduleDir, name));
                            ModuleJar moduleJar = new ModuleJar(name);
                            moduleJar.load();
                            modules.add(moduleJar);
                        }
                    }
                    client.notifyProcessed();
                    bis.close();
View Full Code Here

Examples of net.datacrow.core.objects.DcObject.load()

    }
   
    public void open() {
        DcObject dco = table.getSelectedItem();
        if (dco != null) {
            dco.load(null);
            dco.markAsUnchanged();
            DcMinimalisticItemForm itemForm = new DcMinimalisticItemForm(false, true, dco, this);
            itemForm.setVisible(true);
        }
    }
View Full Code Here

Examples of net.datacrow.core.web.model.DcWebModules.load()

       
        try {
            SecuredUser su = SecurityCentre.getInstance().login(wu.getUsername(), wu.getPassword(), true);
            wu.setSecuredUser(su);
            DcWebModules modules = (DcWebModules) vr.resolveVariable(fc, "modules");
            modules.load();
        } catch (SecurityException se) {
            fc.addMessage("loginError", new FacesMessage(se.getMessage()));
            return "login";
        }
       
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.