Package net.jini.config

Examples of net.jini.config.ConfigurationFile


    }

    public Configuration getConfiguration() throws ConfigurationException {
  String name = sysConfig.getStringConfigVal("testConfiguration", "-");
  System.out.println("Loading configuration file " + name);
        return new ConfigurationFile(new String[]{name});
    }
View Full Code Here


   *
   * @param conf the configuration to examine
   * @return the <code>GroupInfo</code> array
   */
  private Object getGroups(Configuration conf) {
      ConfigurationFile cf = (ConfigurationFile) conf;
      ArrayList list = new ArrayList();
      Set names = cf.getEntryNames();
      Iterator it = names.iterator();
      while (it.hasNext()) {
    String name = (String) it.next();
    int lastDot = name.lastIndexOf(".initialLookupGroups");
    if (lastDot > 0) {
View Full Code Here

        createFile(confFile, conf);
        String entryName = (String)(testCase[3]);
        Class entryType = (Class)(testCase[4]);
        String[] optionsWithFile = { confFile.getPath() };
        try {
            ConfigurationFile configurationFile =
                    callConstructor(OPT_TEST_CASE, null, optionsWithFile);
            ((FakeConfigurationFile)
                configurationFile).useDefaultException(false);
            Object entry = configurationFile.getEntry(
                    "com.sun.jini.test.spec.config.util.TestComponent",
                    entryName,
                    entryType,
                    Configuration.NO_DEFAULT,
                    new Integer(7));
View Full Code Here

TOP

Related Classes of net.jini.config.ConfigurationFile

Copyright © 2018 www.massapicom. 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.