|
|
|
|
@ -16,12 +16,18 @@
@@ -16,12 +16,18 @@
|
|
|
|
|
|
|
|
|
|
package org.springframework.bootstrap.context.embedded; |
|
|
|
|
|
|
|
|
|
import org.springframework.beans.factory.config.BeanPostProcessor; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 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 |
|
|
|
|
* itself is started, so you can set the port, address, error pages etc. Beware: will be |
|
|
|
|
* 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 |
|
|
|
|
* itself is started, so you can set the port, address, error pages etc. |
|
|
|
|
* |
|
|
|
|
* <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>. |
|
|
|
|
* |
|
|
|
|
* @author Dave Syer |
|
|
|
|
|