Commit 078e5425 authored by Dave Syer's avatar Dave Syer

Avoid eager factory bean instantiation for container customizers

parent 999748bd
...@@ -73,7 +73,8 @@ public class EmbeddedServletContainerCustomizerBeanPostProcessor implements ...@@ -73,7 +73,8 @@ public class EmbeddedServletContainerCustomizerBeanPostProcessor implements
// Look up does not include the parent context // Look up does not include the parent context
this.customizers = new ArrayList<EmbeddedServletContainerCustomizer>( this.customizers = new ArrayList<EmbeddedServletContainerCustomizer>(
this.applicationContext.getBeansOfType( this.applicationContext.getBeansOfType(
EmbeddedServletContainerCustomizer.class).values()); EmbeddedServletContainerCustomizer.class, false, false)
.values());
Collections.sort(this.customizers, AnnotationAwareOrderComparator.INSTANCE); Collections.sort(this.customizers, AnnotationAwareOrderComparator.INSTANCE);
this.customizers = Collections.unmodifiableList(this.customizers); this.customizers = Collections.unmodifiableList(this.customizers);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment