Package org.apache.commons.configuration

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


               
                //prepare Configurations for stream repositories
                DefaultConfigurationBuilder streamConfiguration
                    = new DefaultConfigurationBuilder();

                streamConfiguration.addProperty( "[@destinationURL]", filestore );
                streamConfiguration.addProperty( "[@type]", "STREAM" );
                streamConfiguration.addProperty( "[@model]", "SYNCHRONOUS" );
                sr = (StreamRepository) store.select(streamConfiguration);

                if (getLogger().isDebugEnabled()) {
View Full Code Here


                //prepare Configurations for stream repositories
                DefaultConfigurationBuilder streamConfiguration
                    = new DefaultConfigurationBuilder();

                streamConfiguration.addProperty( "[@destinationURL]", filestore );
                streamConfiguration.addProperty( "[@type]", "STREAM" );
                streamConfiguration.addProperty( "[@model]", "SYNCHRONOUS" );
                sr = (StreamRepository) store.select(streamConfiguration);

                if (getLogger().isDebugEnabled()) {
                    getLogger().debug("Got filestore for JdbcMailRepository: " + filestore);
View Full Code Here

                DefaultConfigurationBuilder streamConfiguration
                    = new DefaultConfigurationBuilder();

                streamConfiguration.addProperty( "[@destinationURL]", filestore );
                streamConfiguration.addProperty( "[@type]", "STREAM" );
                streamConfiguration.addProperty( "[@model]", "SYNCHRONOUS" );
                sr = (StreamRepository) store.select(streamConfiguration);

                if (getLogger().isDebugEnabled()) {
                    getLogger().debug("Got filestore for JdbcMailRepository: " + filestore);
                }
View Full Code Here

        }

        StringBuffer destinationBuffer = new StringBuffer(192).append(repositoryUrl).append(userName).append("/");
        String destination = destinationBuffer.toString();
        DefaultConfigurationBuilder mboxConf = new DefaultConfigurationBuilder();
        mboxConf.addProperty("[@destinationURL]", destination);
        mboxConf.addProperty("[@type]", repositoryType);
        MailRepository userInbox;
        try {
            userInbox = (MailRepository) store.select(mboxConf);
        } catch (Exception e) {
View Full Code Here

        StringBuffer destinationBuffer = new StringBuffer(192).append(repositoryUrl).append(userName).append("/");
        String destination = destinationBuffer.toString();
        DefaultConfigurationBuilder mboxConf = new DefaultConfigurationBuilder();
        mboxConf.addProperty("[@destinationURL]", destination);
        mboxConf.addProperty("[@type]", repositoryType);
        MailRepository userInbox;
        try {
            userInbox = (MailRepository) store.select(mboxConf);
        } catch (Exception e) {
            log("Cannot open repository " + e);
View Full Code Here

        }

        try {
            DefaultConfigurationBuilder mailConf
                = new DefaultConfigurationBuilder();
            mailConf.addProperty("[@destinationURL]", repositoryPath);
            mailConf.addProperty("[@type]", "MAIL");
            mailConf.addProperty("[@CACHEKEYS]", getInitParameter("CACHEKEYS","TRUE"));
            repository = (MailRepository) mailStore.select(mailConf);
        } catch (Exception e) {
            log("Failed to retrieve Store component:" + e.getMessage());
View Full Code Here

        try {
            DefaultConfigurationBuilder mailConf
                = new DefaultConfigurationBuilder();
            mailConf.addProperty("[@destinationURL]", repositoryPath);
            mailConf.addProperty("[@type]", "MAIL");
            mailConf.addProperty("[@CACHEKEYS]", getInitParameter("CACHEKEYS","TRUE"));
            repository = (MailRepository) mailStore.select(mailConf);
        } catch (Exception e) {
            log("Failed to retrieve Store component:" + e.getMessage());
        }
View Full Code Here

        try {
            DefaultConfigurationBuilder mailConf
                = new DefaultConfigurationBuilder();
            mailConf.addProperty("[@destinationURL]", repositoryPath);
            mailConf.addProperty("[@type]", "MAIL");
            mailConf.addProperty("[@CACHEKEYS]", getInitParameter("CACHEKEYS","TRUE"));
            repository = (MailRepository) mailStore.select(mailConf);
        } catch (Exception e) {
            log("Failed to retrieve Store component:" + e.getMessage());
        }
View Full Code Here

public class XMLDomainListTest extends TestCase {
   
    private HierarchicalConfiguration setUpConfiguration(boolean auto,boolean autoIP, List<String> names) {
        DefaultConfigurationBuilder configuration = new DefaultConfigurationBuilder();

        configuration.addProperty("autodetect", auto);
        configuration.addProperty("autodetectIP", autoIP);
        for (int i= 0; i< names.size(); i++) {
            configuration.addProperty("domainnames.domainname", names.get(i).toString());
        }
        return configuration;
View Full Code Here

   
    private HierarchicalConfiguration setUpConfiguration(boolean auto,boolean autoIP, List<String> names) {
        DefaultConfigurationBuilder configuration = new DefaultConfigurationBuilder();

        configuration.addProperty("autodetect", auto);
        configuration.addProperty("autodetectIP", autoIP);
        for (int i= 0; i< names.size(); i++) {
            configuration.addProperty("domainnames.domainname", names.get(i).toString());
        }
        return configuration;
    }
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.