Examples of load()


Examples of org.jconfig.ConfigurationManager.load()

               } // end else

            if (url != null) {
                File file = new File(url.getFile());
                XMLFileHandler handler = new XMLFileHandler(file.getAbsolutePath());
                myConfig.load(handler, configName);
            }
        }
        catch (Exception e) {
            e.printStackTrace();
        }
View Full Code Here

Examples of org.jconfig.handler.ConfigServerHandler.load()

        java.net.URL jcfURL = null;
        InputStream is = null;
        try {           
            ConfigServerHandler urlHandler = new ConfigServerHandler();
            urlHandler.setURL(URL+"/config");
            Configuration config = urlHandler.load();
            assertNotNull(config);
            assertEquals("dice",config.getProperty("USER",null,"JDBC"));
        }
        catch ( Exception e ) {
            e.printStackTrace();
View Full Code Here

Examples of org.jconfig.handler.ConfigurationHandler.load()

            Configuration cfg = getConfiguration(name);
            ConfigurationHandler handler = getConfigurationHandler(name);
            if (handler == null) {
                throw new ConfigurationManagerException("There is no handler associated for this configuration");
            }
            cfg = handler.load(name);
            configurations.put(name, cfg);
        } else {
            throw new ConfigurationManagerException("There is no configuration with this name");
        }
    }
View Full Code Here

Examples of org.jconfig.handler.InputStreamHandler.load()

            if ( !name.equals("default") ) {
                fileName = name+"_config.xml";
            }
            InputStreamHandler ish = new InputStreamHandler(fileName);
            try {               
                Configuration config = ish.load(name);
                if ( config != null ) {
                    //config.setConfigName(name);
                    configurations.put(name, config);
                    handlerMapping.put(name, ish);
                    getInstance().addFileListener(name,new ConfigurationFileListener(name));
View Full Code Here

Examples of org.jconfig.handler.SimpleScriptHandler.load()

    return config;
  }
 
  public static Configuration loadScript(String configName) throws ConfigurationManagerException {
    SimpleScriptHandler ssh = new SimpleScriptHandler();
    Configuration config = ssh.load(configName);
    cm.setConfiguration(config,ssh);
    return config;
  }
 
  public static Configuration loadScript(String configName,String fileName) throws ConfigurationManagerException {
View Full Code Here

Examples of org.jconfig.handler.URLHandler.load()

  }
 
  public static Configuration loadFromUrl(String configName,String url) throws ConfigurationManagerException {
    URLHandler urlHandler = new URLHandler();
    urlHandler.setURL(url);
    Configuration config = urlHandler.load(configName);
    cm.setConfiguration(config,urlHandler);
    return config;
  }
 
  public static Configuration loadFromUrl(String configName,String url,String parserName) throws ConfigurationManagerException {
View Full Code Here

Examples of org.jconfig.handler.XMLFileHandler.load()

    return config;
  }
 
  public static Configuration loadFile(String configName,String fileName) throws ConfigurationManagerException {
    XMLFileHandler xmlHandler = new XMLFileHandler(fileName);
    Configuration config = xmlHandler.load(configName);
    cm.setConfiguration(config,xmlHandler);
    return config;
  }
 
  public static Configuration loadFile(String configName,String fileName,String parserName) throws ConfigurationManagerException {
View Full Code Here

Examples of org.jdesktop.j3d.loaders.vrml97.VrmlLoader.load()

    Scene s = null;
    VrmlLoader f = new VrmlLoader();
    try {
      filename=Convert.fixFileName(filename);
      if(filename.startsWith("http://"))
        s=f.load(new java.net.URL(filename));
      else
        s = f.load(filename);
    }
    catch (Exception e) {
      Prolog3D.pp(e);
View Full Code Here

Examples of org.jetbrains.osgi.jps.util.OrderedProperties.load()

   */
  @NotNull
  public Map<String, String> getAdditionalPropertiesAsMap() {
    try {
      OrderedProperties p = new OrderedProperties();
      p.load(new StringReader(getAdditionalProperties()));
      return p.toMap();
    }
    catch (IOException e) {
      LOG.warn(e);
      return Collections.emptyMap();
View Full Code Here

Examples of org.jfree.base.config.PropertyFileConfiguration.load()

            = new HierarchicalConfiguration();

        if (staticConfig != null) {
          final PropertyFileConfiguration rootProperty
              = new PropertyFileConfiguration();
          rootProperty.load(staticConfig);
          globalConfig.insertConfiguration(rootProperty);
          globalConfig.insertConfiguration(
                  getPackageManager().getPackageConfiguration());
        }
        if (userConfig != null)
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.