
be.bagofwords.util.UnitTestApplicationContextFactory Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bow-utils Show documentation
Show all versions of bow-utils Show documentation
Utility classes that are used in the count-db project and other bow-* projects
package be.bagofwords.util;
import be.bagofwords.application.ApplicationContextFactory;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
/**
* Created by Koen Deschacht ([email protected]) on 9/4/14.
*/
public class UnitTestApplicationContextFactory implements ApplicationContextFactory {
@Override
public AnnotationConfigApplicationContext createApplicationContext() {
AnnotationConfigApplicationContext context = new AnnotationConfigApplicationContext();
context.getBeanFactory().registerSingleton("applicationContextFactory", this);
context.scan("be.bagofwords");
return context;
}
@Override
public String getApplicationName() {
return "UnitTest";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy