INT-789, Added caching for compiled regex patterns (see INT-CR-19), forgot to add compiled patterns to the cache

This commit is contained in:
Oleg Zhurakousky
2010-03-29 05:01:14 +00:00
parent f7ef96b177
commit 3171d2d1db

View File

@@ -190,6 +190,7 @@ final class GlobalChannelInterceptorBeanPostProcessor implements BeanPostProcess
Pattern p = compiledPatterns.get(channelPattern);
if (p == null){
p = Pattern.compile(channelPattern);
compiledPatterns.put(channelPattern, p);
}
Matcher m = p.matcher(beanName);
if (m.find()){