Examples of BaseConfiguration


Examples of org.apache.commons.configuration2.BaseConfiguration

        {
            return new AppletConfiguration(new Applet());
        }
        else
        {
            return new BaseConfiguration();
        }
    }
View Full Code Here

Examples of org.apache.commons.configuration2.BaseConfiguration

public class TestServletRequestConfiguration extends TestAbstractConfiguration
{
    @Override
    protected AbstractConfiguration getConfiguration()
    {
        final Configuration configuration = new BaseConfiguration();
        configuration.setProperty("key1", "value1");
        configuration.setProperty("key2", "value2");
        configuration.addProperty("list", "value1");
        configuration.addProperty("list", "value2");
        configuration.addProperty("listesc", "value1\\,value2");

        return createConfiguration(configuration);
    }
View Full Code Here

Examples of org.apache.commons.configuration2.BaseConfiguration

    public void testListWithEscapedElements()
    {
        String[] values = { "test1", "test2\\,test3", "test4\\,test5" };
        String listKey = "test.list";

        BaseConfiguration config = new BaseConfiguration();
        config.addProperty(listKey, values);

        assertEquals("Wrong number of list elements", values.length, config.getList(listKey).size());

        Configuration c = createConfiguration(config);
        List<?> v = c.getList(listKey);

        assertEquals("Wrong number of elements in list", values.length, v.size());
View Full Code Here

Examples of org.apache.logging.log4j.core.config.BaseConfiguration

            coreLogger.setAdditive(additive);

            LoggerContext context = coreLogger.getContext();

            BaseConfiguration configuration
                = (BaseConfiguration) context.getConfiguration();

            configuration.addAppender(appender);
            //this line sort of resets the loggers
//            context.updateLoggers(configuration);

//            if (coreLogger.getParent() == null) {
                for (LoggerConfig loggerConfig : configuration.getLoggers().values()) {
                    loggerConfig.addAppender(appender, level, filter);
//                }
            }
        } catch (Exception e) {
            throw Exceptions.runtime(e);
View Full Code Here

Examples of org.apache.stratum.configuration.BaseConfiguration

     * @param name The name of the service.
     * @return Properties of requested Service.
     */
    public Configuration getConfiguration( String name )
    {
        return (Configuration) new BaseConfiguration();
    }
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.