Package org.jboss.as.domain.management.security

Examples of org.jboss.as.domain.management.security.PropertiesFileLoader


    }

    private Map<String,String> loadAllRoles(List<File> foundRoleFiles) throws StartException, IOException {
        Map<String, String> loadedRoles = new HashMap<String, String>();
        for (File file : foundRoleFiles) {
            PropertiesFileLoader propertiesLoad = null;
            try {
                propertiesLoad = new UserPropertiesFileHandler(file.getCanonicalPath());
                propertiesLoad.start(null);
                loadedRoles.putAll((Map) propertiesLoad.getProperties());
            finally {
                if (propertiesLoad!=null) {
                    propertiesLoad.stop(null);
                }
            }
        }
        return loadedRoles;
    }
View Full Code Here


    }

    private Map<String, String> loadAllRoles(List<File> foundRoleFiles) throws StartException, IOException {
        Map<String, String> loadedRoles = new HashMap<String, String>();
        for (File file : foundRoleFiles) {
            PropertiesFileLoader propertiesLoad = null;
            try {
                propertiesLoad = new UserPropertiesFileHandler(file.getCanonicalPath());
                propertiesLoad.start(null);
                loadedRoles.putAll((Map) propertiesLoad.getProperties());
            } finally {
                if (propertiesLoad != null) {
                    propertiesLoad.stop(null);
                }
            }
        }
        return loadedRoles;
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.domain.management.security.PropertiesFileLoader

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.