Examples of BasicBuilderParameters


Examples of org.apache.commons.configuration2.builder.BasicBuilderParameters

     */
    @Test
    public void testInitWithParameters() throws ConfigurationException
    {
        ExpressionEngine engine = new XPathExpressionEngine();
        BasicBuilderParameters params =
                createTestBuilderParameters(new XMLBuilderParametersImpl()
                        .setExpressionEngine(engine));
        ReloadingMultiFileConfigurationBuilder<XMLConfiguration> builder =
                new ReloadingMultiFileConfigurationBuilder<XMLConfiguration>(
                        XMLConfiguration.class, params.getParameters());
        switchToConfig(1);
        XMLConfiguration config = builder.getConfiguration();
        assertSame("Expression engine not set", engine,
                config.getExpressionEngine());
    }
View Full Code Here

Examples of org.apache.commons.configuration2.builder.BasicBuilderParameters

                .setDefinitionBuilder(new ConstantConfigurationBuilder(defConf))
                .setSynchronizer(sync)
                .registerChildDefaultsHandler(
                        BasicBuilderProperties.class,
                        new CopyObjectDefaultHandler(
                                new BasicBuilderParameters()
                                        .setSynchronizer(sync)))
                .registerChildDefaultsHandler(
                        FileBasedBuilderProperties.class,
                        new CopyObjectDefaultHandler(
                                new FileBasedBuilderParametersImpl()
View Full Code Here

Examples of org.apache.commons.configuration2.builder.BasicBuilderParameters

     *        wrapped beans
     * @return the test bean
     */
    private MultiWrapDynaBean createBean(boolean withDynaBean)
    {
        params = new BasicBuilderParameters();
        wrapBean = new WrappedBeanTestImpl();
        Collection<Object> beans = new ArrayList<Object>();
        beans.add(params);
        beans.add(wrapBean);
        if (withDynaBean)
View Full Code Here

Examples of org.apache.commons.configuration2.builder.BasicBuilderParameters

     */
    @Test
    public void testOrderOfProperties() throws Exception
    {
        Collection<Object> beans = new ArrayList<Object>();
        params = new BasicBuilderParameters();
        beans.add(params);
        beans.add(new FileBasedBuilderParametersImpl());
        for (int i = 0; i < 32; i++)
        {
            beans.add(new BasicBuilderParameters());
        }
        MultiWrapDynaBean bean = new MultiWrapDynaBean(beans);
        ListDelimiterHandler listHandler = new DefaultListDelimiterHandler('+');
        PropertyUtils
                .setProperty(bean, "throwExceptionOnMissing", Boolean.TRUE);
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.