Examples of INIConfiguration


Examples of org.apache.commons.configuration.INIConfiguration

     *
     * @throws RepositoryException wrapping a {@link ConfigurationException} if problems occurred
     *             while reading the paps configuration file.
     */
    private FileSystemPapDAO() {
        iniConfiguration = new INIConfiguration();

        File iniPAPConfigurationFile = new File(dbPath + File.separator + PAP_FILE_NAME);

        iniConfiguration.setFile(iniPAPConfigurationFile);

View Full Code Here

Examples of org.apache.commons.configuration.INIConfiguration

                    "PAP startup configuration file does not exists on path:"
                            + papConfFile.getAbsolutePath() );

        try {

            startupConfiguration = new INIConfiguration( papConfFile );
            configuration.addConfiguration( startupConfiguration );
           
           

        } catch ( org.apache.commons.configuration.ConfigurationException e ) {
View Full Code Here

Examples of org.apache.commons.configuration2.INIConfiguration

     */
    @Test
    public void testINIFromFile() throws ConfigurationException
    {
        Configurations configs = new Configurations();
        INIConfiguration config =
                configs.ini(ConfigurationAssert.getTestFile(TEST_INI));
        checkINI(config);
    }
View Full Code Here

Examples of org.apache.commons.configuration2.INIConfiguration

     */
    @Test
    public void testINIFromURL() throws ConfigurationException
    {
        Configurations configs = new Configurations();
        INIConfiguration config =
                configs.ini(ConfigurationAssert.getTestURL(TEST_INI));
        checkINI(config);
    }
View Full Code Here

Examples of org.apache.commons.configuration2.INIConfiguration

     */
    @Test
    public void testINIFromPath() throws ConfigurationException
    {
        Configurations configs = new Configurations();
        INIConfiguration config = configs.ini(filePath(TEST_INI));
        checkINI(config);
    }
View Full Code Here

Examples of org.apache.shiro.config.IniConfiguration

*/
public class Standalone {

    public static void main(String[] args) {

        IniConfiguration config = new IniConfiguration();
        //the following call will automatically use shiro.ini at the root of the classpath:
        config.init();

        //This is for Standalone (single-VM) applications that don't use a configuration container (Spring, JBoss, etc)
        //See its JavaDoc for our feelings on this.
        SecurityUtils.setSecurityManager(config.getSecurityManager());

        //Now you are ready to access the Subject, as shown in the Quickstart:
        Subject currentUser = SecurityUtils.getSubject();

        //anything else you want to do with the Subject (see the Quickstart for examples).
View Full Code Here

Examples of org.apache.shiro.config.IniConfiguration

*/
public class Standalone {

    public static void main(String[] args) {

        IniConfiguration config = new IniConfiguration();
        //the following call will automatically use shiro.ini at the root of the classpath:
        config.init();

        //This is for Standalone (single-VM) applications that don't use a configuration container (Spring, JBoss, etc)
        //See its JavaDoc for our feelings on this.
        SecurityUtils.setSecurityManager(config.getSecurityManager());

        //Now you are ready to access the Subject, as shown in the Quickstart:
        Subject currentUser = SecurityUtils.getSubject();

        //anything else you want to do with the Subject (see the Quickstart for examples).
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.