Example usage for org.springframework.context.annotation AnnotationConfigApplicationContext setResourceLoader

List of usage examples for org.springframework.context.annotation AnnotationConfigApplicationContext setResourceLoader

Introduction

In this page you can find the example usage for org.springframework.context.annotation AnnotationConfigApplicationContext setResourceLoader.

Prototype

public void setResourceLoader(ResourceLoader resourceLoader) 

Source Link

Document

Set a ResourceLoader to use for this context.

Usage

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;
}