Examples of absolutePath()


Examples of java.util.prefs.Preferences.absolutePath()

    pref3.put("key3", "value3");

    // add a subnode for child #1
    Preferences child1 = pref1.node("subPreference1");
    this.harness.check("subPreference1".compareTo(child1.name()) == 0);
    absolutePath = child1.absolutePath();
    this.harness.check((FULL_PATH + "/children_1/" + "subPreference1")
        .compareTo(absolutePath) == 0);

    child1.put("key1-child1", "some value");
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

     */
    private void finishConfigurationSetup(AgentConfiguration agent_configuration) throws Exception {
        Preferences prefs = agent_configuration.getPreferences();

        LOG.debug(AgentI18NResourceKeys.PREFERENCES_SCHEMA, agent_configuration.getAgentConfigurationVersion());
        LOG.debug(AgentI18NResourceKeys.PREFERENCES_NODE_PATH, prefs.absolutePath());

        if (!agent_configuration.doNotOverridePreferencesWithSystemProperties()) {
            overlaySystemProperties(prefs);
        }

View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            instruction.postProcess();
        }

        // print out a message so the user knows we are done asking questions and log the new set of preference values
        if (user_stop) {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_USER_STOP, preferences.absolutePath()));
        } else if (user_cancel) {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_USER_CANCEL, preferences.absolutePath()));
            restorePreferences(backup);
        } else {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_COMPLETE, preferences.absolutePath()));
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

        // print out a message so the user knows we are done asking questions and log the new set of preference values
        if (user_stop) {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_USER_STOP, preferences.absolutePath()));
        } else if (user_cancel) {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_USER_CANCEL, preferences.absolutePath()));
            restorePreferences(backup);
        } else {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_COMPLETE, preferences.absolutePath()));
        }
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_USER_STOP, preferences.absolutePath()));
        } else if (user_cancel) {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_USER_CANCEL, preferences.absolutePath()));
            restorePreferences(backup);
        } else {
            out.println(MSG.getMsg(CommI18NResourceKeys.SETUP_COMPLETE, preferences.absolutePath()));
        }

        if (LOG.isDebugEnabled()) {
            LOG.debug(CommI18NResourceKeys.SETUP_COMPLETE_WITH_DUMP, preferencesDump(preferences));
        }
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

        {
            log.debug("Added role preferences node: " + fullPath);
        }
        try
        {
            if ((null != preferences) && preferences.absolutePath().equals(fullPath))
            {
                // Add role principal.
                roleSecurityHandler.setRolePrincipal(rolePrincipal);
                if (log.isDebugEnabled())
                {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            log.debug("Added user preferences node: " + fullPath);
        }
        try
        {
            if ((null != preferences)
                    && preferences.absolutePath().equals(fullPath))
            {
                // Add user principal.
                atnProviderProxy.addUserPrincipal(userPrincipal);
                if (password != null)
                {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            log.debug("Added group preferences node: " + fullPath);
        }
        try
        {
            if ((null != preferences)
                    && preferences.absolutePath().equals(fullPath))
            {
                // Add role principal.
                groupSecurityHandler.setGroupPrincipal(groupPrincipal);
                if (log.isDebugEnabled())
                {
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

            p = Preferences.systemNodeForPackage(Object.class);
        } catch (SecurityException e) {
            // may be caused by absence of privileges on the underlying OS
            return;
        }
    assertEquals("/java/lang", p.absolutePath());
    assertTrue(p instanceof AbstractPreferences);
    Preferences root = Preferences.systemRoot();
    Preferences parent = root.node("java");
    assertSame(parent, p.parent());
    assertFalse(p.isUserNode());
View Full Code Here

Examples of java.util.prefs.Preferences.absolutePath()

  }

  public void testSystemRoot() throws BackingStoreException {
    Preferences p = Preferences.systemRoot();
    assertTrue(p instanceof AbstractPreferences);
    assertEquals("/", p.absolutePath());
    assertSame(null, p.parent());
    assertFalse(p.isUserNode());
    assertEquals("", p.name());
    assertEquals("System Preference Node: " + p.absolutePath(), p
        .toString());
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.