Package com.wordpress.salaboy.model.persistence

Examples of com.wordpress.salaboy.model.persistence.EnvironmentConfiguration


    public static final String SERVER_BASE_URL = "http://localhost:7575";
    public static String configFile = "config-beans.xml";
    public static ContextTrackingService getTrackingService() {
        if (instance == null) {
            context = new ClassPathXmlApplicationContext(configFile);
            EnvironmentConfiguration conf = (EnvironmentConfiguration) context.getBean("environmentConf");
            ContextTrackingServiceType type = (ContextTrackingServiceType) conf.get("ContextTrackingService");
            if (type == null) {
                throw new IllegalStateException("Persistence Service Type needs to be specified in spring");
            }
            switch (type) {
                case IN_MEMORY:
View Full Code Here

TOP

Related Classes of com.wordpress.salaboy.model.persistence.EnvironmentConfiguration

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.