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 org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE -
Constructor Summary
ConstructorsModifierConstructorDescriptionManagementWebServerFactoryCustomizer(ListableBeanFactory beanFactory) Creates a new customizer that will retrieve beans using the givenbeanFactory.protectedManagementWebServerFactoryCustomizer(ListableBeanFactory beanFactory, Class<? extends WebServerFactoryCustomizer<?>>... customizerClasses) Deprecated, for removal: This API element is subject to removal in a future version. -
Method Summary
Modifier and TypeMethodDescriptionfinal voidCustomize the specifiedWebServerFactory.protected voidcustomize(T factory, ManagementServerProperties managementServerProperties, ServerProperties serverProperties) intgetOrder()
-
Constructor Details
-
ManagementWebServerFactoryCustomizer
@SafeVarargs @Deprecated(since="3.5.0", forRemoval=true) protected ManagementWebServerFactoryCustomizer(ListableBeanFactory beanFactory, Class<? extends WebServerFactoryCustomizer<?>>... customizerClasses) Deprecated, for removal: This API element is subject to removal in a future version. -
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
public int 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)
-