Package org.osgi.service.prefs

Examples of org.osgi.service.prefs.Preferences.node()


            if (prefs.nodeExists("repositories")) {
                Set<URI> repositories = loadSet(prefs.node("repositories"));
                for (URI repo : repositories) {
                    internalAddRepository(repo);
                }
                installed = loadMap(prefs.node("features"));
                for (Feature f : installed.keySet()) {
                    callListeners(new FeatureEvent(f, FeatureEvent.EventType.FeatureInstalled, true));
                }
                bootFeaturesInstalled = prefs.getBoolean("bootFeaturesInstalled", false);
                return true;
View Full Code Here


    PuppetDBConnectionPreferencesImpl pa = new PuppetDBConnectionPreferencesImpl(hostname, port);
    String ident = pa.getIdentifier();
    Preferences root = getPuppetDBNode();
    if(root.nodeExists(ident))
      throw new IllegalArgumentException("A node for " + ident + " already exists");
    root.node(ident);
    pa.makePersistent();
    return pa;
  }

  @Override
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.