mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Tweak EmbeddedServletContainerCustomizer javadoc
Make it a little clearer that a EmbeddedServletContainerCustomizerBeanPostProcessor is usually involved. Issue: #53029445
This commit is contained in:
parent
d260fa6456
commit
fbc68fe145
@ -16,12 +16,18 @@
|
|||||||
|
|
||||||
package org.springframework.bootstrap.context.embedded;
|
package org.springframework.bootstrap.context.embedded;
|
||||||
|
|
||||||
|
import org.springframework.beans.factory.config.BeanPostProcessor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Strategy interface for customizing auto-configured embedded servlet containers. Any
|
* Strategy interface for customizing auto-configured embedded servlet containers. Any
|
||||||
* beans of this type will get a callback with the container factory before the container
|
* beans of this type will get a callback with the container factory before the container
|
||||||
* itself is started, so you can set the port, address, error pages etc. Beware: will be
|
* itself is started, so you can set the port, address, error pages etc.
|
||||||
* called from a BeanPostProcessor (so very early in the ApplicationContext lifecycle), so
|
*
|
||||||
* it might be safer to lookup dependencies lazily in the enclosing BeanFactory rather
|
* <p>
|
||||||
|
* Beware: calls to this interface are usually made from a
|
||||||
|
* {@link EmbeddedServletContainerCustomizerBeanPostProcessor} which is a
|
||||||
|
* {@link BeanPostProcessor} (so called very early in the ApplicationContext lifecycle).
|
||||||
|
* It might be safer to lookup dependencies lazily in the enclosing BeanFactory rather
|
||||||
* than injecting them with <code>@Autowired</code>.
|
* than injecting them with <code>@Autowired</code>.
|
||||||
*
|
*
|
||||||
* @author Dave Syer
|
* @author Dave Syer
|
||||||
|
@ -37,9 +37,6 @@ import org.springframework.core.annotation.AnnotationAwareOrderComparator;
|
|||||||
public class EmbeddedServletContainerCustomizerBeanPostProcessor implements
|
public class EmbeddedServletContainerCustomizerBeanPostProcessor implements
|
||||||
BeanPostProcessor, ApplicationContextAware {
|
BeanPostProcessor, ApplicationContextAware {
|
||||||
|
|
||||||
// FIXME should we register this by default, Javadoc in
|
|
||||||
// EmbeddedServletContainerCustomizer suggests so
|
|
||||||
|
|
||||||
private ApplicationContext applicationContext;
|
private ApplicationContext applicationContext;
|
||||||
|
|
||||||
private List<EmbeddedServletContainerCustomizer> customizers;
|
private List<EmbeddedServletContainerCustomizer> customizers;
|
||||||
|
Loading…
Reference in New Issue
Block a user