Examples of childrenNames()


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

    private void createRepositoryPrefs(String pid, String customer, String name) throws ConfigurationException {
        Preferences systemPrefs = m_prefsService.getSystemPreferences();

        String[] nodes;
        try {
            nodes = systemPrefs.childrenNames();
        }
        catch (BackingStoreException e) {
            throw new ConfigurationException(null, "Internal error while validating configuration.");
        }
        for (String nodeName : nodes) {
View Full Code Here

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

    void loadPreferences() {
        Preferences workingNode = m_prefs.node(PREFS_LOCAL_WORKING_STATE);
        Map<String, WorkingState> entries = new HashMap<String, WorkingState>();
        // First, get all nodes and their workingstate.
        try {
            for (String node : workingNode.childrenNames()) {
                String state = workingNode.node(node).get(PREFS_LOCAL_WORKING_STATE_VALUE, WorkingState.Unchanged.toString());
                entries.put(node, WorkingState.valueOf(state));
            }
        }
        catch (BackingStoreException e) {
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.