Class ManagementWebServerFactoryCustomizer<T extends ConfigurableWebServerFactory>
java.lang.Object
org.springframework.boot.actuate.autoconfigure.web.server.ManagementWebServerFactoryCustomizer<T>
- Type Parameters:
T- the type of web server factory to customize
- All Implemented Interfaces:
WebServerFactoryCustomizer<T>, Ordered
public class ManagementWebServerFactoryCustomizer<T extends ConfigurableWebServerFactory>
extends Object
implements WebServerFactoryCustomizer<T>, Ordered
WebServerFactoryCustomizer that customizes the WebServerFactory used to
create the management context's web server.- Since:
- 2.0.0
- Author:
- Andy Wilkinson
-
Field Summary
Fields inherited from interface Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsConstructorDescriptionManagementWebServerFactoryCustomizer(ListableBeanFactory beanFactory) Creates a new customizer that will retrieve beans using the givenbeanFactory. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCustomize the specifiedWebServerFactory.protected voidcustomize(T factory, ManagementServerProperties managementServerProperties, ServerProperties serverProperties) intgetOrder()
-
Constructor Details
-
ManagementWebServerFactoryCustomizer
Creates a new customizer that will retrieve beans using the givenbeanFactory.- Parameters:
beanFactory- the bean factory to use- Since:
- 3.5.0
-
-
Method Details
-
getOrder
-
customize
Description copied from interface:WebServerFactoryCustomizerCustomize the specifiedWebServerFactory.- Specified by:
customizein interfaceWebServerFactoryCustomizer<T extends ConfigurableWebServerFactory>- Parameters:
factory- the web server factory to customize
-
customize
protected void customize(T factory, ManagementServerProperties managementServerProperties, ServerProperties serverProperties)
-