List of usage examples for org.springframework.context.annotation AnnotationConfigApplicationContext setResourceLoader
public void setResourceLoader(ResourceLoader resourceLoader)
From source file:edu.mayo.cts2.framework.plugin.service.bprdf.osgi.OsgiTwinkqlTemplateFactory.java
protected AnnotationConfigApplicationContext decorateContext( AnnotationConfigApplicationContext applicationContext) { if (this.bundleContext != null) { applicationContext .setResourceLoader(new OsgiBundleResourcePatternResolver(this.bundleContext.getBundle())); }/*from www .j a v a 2 s. c om*/ return applicationContext; }