Browse Source

avoid ChainedTilesRequestContextFactory warn logging on Tiles 2.2

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@3110 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/head
Juergen Hoeller 16 years ago
parent
commit
fc5a67cdf2
  1. 9
      org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/tiles2/TilesConfigurer.java

9
org.springframework.web.servlet/src/main/java/org/springframework/web/servlet/view/tiles2/TilesConfigurer.java

@ -384,6 +384,15 @@ public class TilesConfigurer implements ServletContextAware, InitializingBean, D @@ -384,6 +384,15 @@ public class TilesConfigurer implements ServletContextAware, InitializingBean, D
return (useMutableTilesContainer ? new CachingTilesContainer() : new BasicTilesContainer());
}
@Override
protected void registerRequestContextFactory(String className,
List<TilesRequestContextFactory> factories, TilesRequestContextFactory parent) {
// Avoid Tiles 2.2 warn logging when default RequestContextFactory impl class not found
if (ClassUtils.isPresent(className, TilesConfigurer.class.getClassLoader())) {
super.registerRequestContextFactory(className, factories, parent);
}
}
@Override
protected List<URL> getSourceURLs(TilesApplicationContext applicationContext,
TilesRequestContextFactory contextFactory) {

Loading…
Cancel
Save