Package org.zanata

Examples of org.zanata.ApplicationConfiguration


    public Session getSession() throws NamingException {
        return super.getSession();
    }

    protected void setup() {
        ApplicationConfiguration appConfig =
                ServiceLocator.instance().getInstance(
                        ApplicationConfiguration.class);

        // Override default properties
        setHost(appConfig.getEmailServerHost());
        setPort(appConfig.getEmailServerPort());
        setUsername(appConfig.getEmailServerUsername());
        setPassword(appConfig.getEmailServerPassword());
        setTls(appConfig.useEmailServerTls());
        setSsl(appConfig.useEmailServerSsl());
    }
View Full Code Here


    public void loadConfig() {
        readRateLimitState();
    }

    private void readRateLimitState() {
        ApplicationConfiguration appConfig =
                ServiceLocator.instance().getInstance(
                        ApplicationConfiguration.class);
        maxConcurrent = appConfig.getMaxConcurrentRequestsPerApiKey();
        maxActive = appConfig.getMaxActiveRequestsPerApiKey();
    }
View Full Code Here

TOP

Related Classes of org.zanata.ApplicationConfiguration

Copyright © 2018 www.massapicom. 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.