Example usage for org.springframework.integration.expression ReloadableResourceBundleExpressionSource setBasename

List of usage examples for org.springframework.integration.expression ReloadableResourceBundleExpressionSource setBasename

Introduction

In this page you can find the example usage for org.springframework.integration.expression ReloadableResourceBundleExpressionSource setBasename.

Prototype

public void setBasename(String basename) 

Source Link

Document

Set a single basename, following the basic ResourceBundle convention of not specifying file extension or language codes, but referring to a Spring resource location: e.g.

Usage

From source file:com.apress.prospringintegration.messageflow.filter.FilterConfiguration.java

@Bean
public ReloadableResourceBundleExpressionSource filterRules() {
    ReloadableResourceBundleExpressionSource filterRules = new ReloadableResourceBundleExpressionSource();
    filterRules.setBasename("filter-rules");
    filterRules.setCacheSeconds(10);//ww  w.j  ava  2 s .co m
    return filterRules;
}

From source file:com.apress.prospringintegration.messageflow.router.RouterConfiguration.java

@Bean
public ReloadableResourceBundleExpressionSource reloadableRouteExpressions() {
    ReloadableResourceBundleExpressionSource reloadableRouteExpressions = new ReloadableResourceBundleExpressionSource();
    reloadableRouteExpressions.setBasename("router-expressions");
    reloadableRouteExpressions.setCacheSeconds(10);
    return reloadableRouteExpressions;
}