Avoid eager factory bean instantiation for container customizers

pull/1165/head
Dave Syer 11 years ago
parent 999748bdab
commit 078e5425cd

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

Loading…
Cancel
Save