Examples of load()


Examples of org.apache.commons.configuration.PropertiesConfiguration.load()

    if (defaultsFile != null)
    {
      PropertiesConfiguration defaultsConf = new PropertiesConfiguration();
      FileObject fo = VFSUtils.resolveFile(".", defaultsFile);
      InputStream in = fo.getContent().getInputStream();
      defaultsConf.load(in);
      in.close();
      for (Iterator it = defaultsConf.getKeys(); it.hasNext();)
      {
        String key = (String) it.next();
        if (jnlpConf.containsKey(key))
View Full Code Here

Examples of org.apache.commons.configuration.XMLConfiguration.load()

      x.write(el);
    } catch (IOException e) {
    }
    XMLConfiguration xmlConfig = new XMLConfiguration();
    try {
      xmlConfig.load(new StringReader(w.toString()));
    } catch (ConfigurationException e) {
      throw new JibeRuntimeException(e);
    }
    xmlConfig.setExpressionEngine(new XPathExpressionEngine());
    cc.setConfiguration(xmlConfig);
View Full Code Here

Examples of org.apache.commons.configuration.io.FileHandler.load()

                        : new PropertiesConfiguration();

        FileHandler handler = new FileHandler(config);
        handler.setBasePath(basePath);
        handler.setFileName(fileName);
        handler.load();
        setSystemProperties(config);
    }

    /**
     * Set System properties from a configuration object.
View Full Code Here

Examples of org.apache.commons.configuration2.io.FileHandler.load()

    {
        CompositeConfiguration cc = new CompositeConfiguration();
        PropertiesConfiguration pc = new PropertiesConfiguration();
        FileHandler handler = new FileHandler(pc);
        handler.setFileName(testProperties);
        handler.load();
        cc.addConfiguration(pc);
        conf = cc;
        nonStringTestHolder.setConfiguration(conf);
    }
}
View Full Code Here

Examples of org.apache.commons.modeler.modules.MbeansSource.load()

            File mbeansF=new File( mbeansFile );
            mbeansMB.setSource(mbeansF);
           
            Registry.getRegistry(null, null).registerComponent
                (mbeansMB, domain + ":type=MbeansFile", null);
            mbeansMB.load();
            mbeansMB.init();
            mbeansMB.setRegistry(Registry.getRegistry(null, null));
            mbeans=mbeansMB.getMBeans();
           
        } catch( Throwable t ) {
View Full Code Here

Examples of org.apache.cxf.tools.util.PropertyUtil.load()

    }
   
    public void loadDefaultNS2Pck()  {
        try {
            PropertyUtil properties = new PropertyUtil();
            properties.load(getResourceAsStream("toolspec/toolspecs/namespace2package.cfg"));
            namespacePackageMap.putAll(properties.getMaps());
        } catch (IOException e) {
            e.printStackTrace();
        }
    }
View Full Code Here

Examples of org.apache.derby.iapi.store.access.conglomerate.Conglomerate.load()

    Conglomerate conglom = findExistingConglomerate(conglomId);

    // Load up the conglomerate with rows from the rowSource.
    // Don't need to keep track of the conglomerate controller because load
    // automatically closes it when it finished.
    return(conglom.load(this, createConglom, rowSource));
  }

  /**
    Use this for incremental load in the future. 

View Full Code Here

Examples of org.apache.directory.api.ldap.model.schema.SchemaManager.load()

            if ( !isLoaded )
            {
                // We have to load the schema, if it exists
                try
                {
                    isLoaded = schemaManager.load( schemaName );
                }
                catch ( LdapUnwillingToPerformException lutpe )
                {
                    // Cannot load the schema, it does not exists
                    LOG.error( lutpe.getMessage() );
View Full Code Here

Examples of org.apache.directory.api.ldap.schemamanager.impl.DefaultSchemaManager.load()

        Schema core = loader.getSchema( "core" );
        Schema empty = new DefaultSchema( "empty" );
        Schema cosine = loader.getSchema( "cosine" );
        Schema inetOrgPerson = loader.getSchema( "InetOrgPerson" );

        assertTrue( schemaManager.load( system, core, empty, cosine, inetOrgPerson ) );

        assertTrue( schemaManager.getErrors().isEmpty() );
        assertEquals( 142, schemaManager.getAttributeTypeRegistry().size() );
        assertEquals( 35, schemaManager.getComparatorRegistry().size() );
        assertEquals( 35, schemaManager.getMatchingRuleRegistry().size() );
View Full Code Here

Examples of org.apache.directory.server.schema.bootstrap.BootstrapSchemaLoader.load()

    @Before
    public void setUp() throws Exception
    {
        BootstrapSchemaLoader loader = new BootstrapSchemaLoader();
        registries = new DefaultRegistries( "bootstrap", loader, new DefaultOidRegistry() );
        loader.load( new SystemSchema(), registries, false );
        loader.load( new ApacheSchema(), registries, false );
        loader.load( new CoreSchema(), registries, false );
        loader.load( new CosineSchema(), registries, false );
        loader.load( new NisSchema(), registries, false );
    }
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.