Package org.springframework.config.java.context

Examples of org.springframework.config.java.context.JavaConfigApplicationContext


        return answer.toArray(new Class<?>[answer.size()]);
    }
       
    protected AbstractApplicationContext createDefaultApplicationContext() {
        ApplicationContext parentContext = getParentApplicationContext();
        JavaConfigApplicationContext jcApplicationContext = new JavaConfigApplicationContext();
        if (parentContext != null) {
            jcApplicationContext.setParent(parentContext);
        }
        if (getConfigClassesString() != null) {
            Class<?>[] configClasses = getConfigClasses(getConfigClassesString());
            for (Class<?> cls : configClasses) {
                jcApplicationContext.addConfigClass(cls);
            }
        }
        if (getBasedPackages() != null) {
            String[] basePackages = getBasedPackages().split(";");
            for (String basePackage : basePackages) {
                jcApplicationContext.addBasePackage(basePackage);
            }
        }
        jcApplicationContext.refresh();
        return jcApplicationContext;
       
    }
View Full Code Here


        return answer.toArray(new Class<?>[answer.size()]);
    }
       
    protected AbstractApplicationContext createDefaultApplicationContext() {
        ApplicationContext parentContext = getParentApplicationContext();
        JavaConfigApplicationContext jcApplicationContext = new JavaConfigApplicationContext();
        if (parentContext != null) {
            jcApplicationContext.setParent(parentContext);
        }
        if (getConfigClassesString() != null) {
            Class<?>[] configClasses = getConfigClasses(getConfigClassesString());
            for (Class<?> cls : configClasses) {
                jcApplicationContext.addConfigClass(cls);
            }
        }
        if (getBasedPackages() != null) {
            String[] basePackages = getBasedPackages().split(";");
            for (String basePackage : basePackages) {
                jcApplicationContext.addBasePackage(basePackage);
            }
        }
        jcApplicationContext.refresh();
        return jcApplicationContext;
       
    }
View Full Code Here

TOP

Related Classes of org.springframework.config.java.context.JavaConfigApplicationContext

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.