Examples of addProperty()


Examples of org.apache.commons.configuration.PropertiesConfiguration.addProperty()

        QueueConfiguration qConf = new QueueConfiguration("test", _emptyConf);
        assertTrue(qConf.getArguments().isEmpty());


        PropertiesConfiguration queueConfig = new PropertiesConfiguration();
        queueConfig.addProperty("queues.queue.test.argument", QueueArgumentsConverter.QPID_GROUP_HEADER_KEY + "=mykey");
        queueConfig.addProperty("queues.queue.test.argument", QueueArgumentsConverter.QPID_SHARED_MSG_GROUP + "=1");

        CompositeConfiguration config = new CompositeConfiguration();
        config.addConfiguration(_fullHostConf.getConfig());
        config.addConfiguration(queueConfig);

Examples of org.apache.commons.configuration.SubnodeConfiguration.addProperty()

     */
    public void testSubnodeChangedEvent()
    {
        SubnodeConfiguration sub = ((HierarchicalConfiguration) config)
                .configurationAt(EXIST_PROPERTY);
        sub.addProperty("newProp", "newValue");
        checkSubnodeEvent(l
                .nextEvent(HierarchicalConfiguration.EVENT_SUBNODE_CHANGED),
                true);
        checkSubnodeEvent(l
                .nextEvent(HierarchicalConfiguration.EVENT_SUBNODE_CHANGED),

Examples of org.apache.commons.configuration.XMLConfiguration.addProperty()

                port = getNextAvailable(port + 1);
            }
            _brokerPorts[i] = port;

            XMLConfiguration testConfiguration = new XMLConfiguration();
            testConfiguration.addProperty("management.enabled", "false");

            XMLConfiguration testVirtualhosts = new XMLConfiguration();
            String host = null;
            if (i == 1 || i == _brokerPorts.length - 1)
            {

Examples of org.apache.commons.configuration2.BaseConfiguration.addProperty()

    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);
    }

Examples of org.apache.commons.configuration2.BaseHierarchicalConfiguration.addProperty()

        BaseHierarchicalConfiguration conf =
                new BaseHierarchicalConfiguration();
        ConfigurationBuilder<BaseHierarchicalConfiguration> builder =
                createBuilderMock(conf);
        EasyMock.replay(builder);
        conf.addProperty("test1", "value1");
        conf.addProperty("test2", "42");
        BuilderConfigurationWrapperFactory factory =
                new BuilderConfigurationWrapperFactory();
        HierarchicalConfiguration<?> wrapper =
                factory.createBuilderConfigurationWrapper(

Examples of org.apache.commons.configuration2.Configuration.addProperty()

        {
            configuration.setProperty(properties[i], values[i]);
        }

        for (int element : intArray) {
            configuration.addProperty("intIndexed", new Integer(element));
        }

        for (String element : stringArray) {
            configuration.addProperty("stringIndexed", element);
        }

Examples of org.apache.commons.configuration2.PropertiesConfiguration.addProperty()

                        .configure(new EventListenerParameters()
                                .addEventListener(ConfigurationEvent.ANY,
                                        listener));
        PropertiesConfiguration config = builder.getConfiguration();
        builder.resetResult();
        config.addProperty("foo", "bar");
        listener.done();
    }

    /**
     * Tests whether parameters starting with a reserved prefix are filtered out

Examples of org.apache.felix.bundlerepository.impl.CapabilityImpl.addProperty()

                CapabilityImpl cap = new CapabilityImpl(c[i].getName());
                Iterator iter = c[i].getProperties().entrySet().iterator();    
                int j = 0;
                while (iter.hasNext()) {
                    Map.Entry entry = (Map.Entry) iter.next();
                    cap.addProperty((String) entry.getKey(), null, (String) entry.getValue());
                }
               
                capabilities[i] = cap;
            }
        }

Examples of org.apache.flex.forks.velocity.app.VelocityEngine.addProperty()

            }
           
            if (useClasspath)
            {
              log("Using classpath");
                ve.addProperty(
                    VelocityEngine.RESOURCE_LOADER, "classpath");
           
                ve.setProperty(
                    "classpath." + VelocityEngine.RESOURCE_LOADER + ".class",
                        "org.apache.flex.forks.velocity.runtime.resource.loader.ClasspathResourceLoader");

Examples of org.apache.fop.fo.ListProperty.addProperty()

        ListProperty propList = null;
        while (true) {
            Property prop = parseAdditiveExpr();
            if (currentToken == TOK_EOF) {
                if (propList != null) {
                    propList.addProperty(prop);
                    return propList;
                } else
                    return prop;
            } else {
                if (propList == null) {
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.