Class ManagementWebServerFactoryCustomizer<T extends org.springframework.boot.web.server.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:
org.springframework.boot.web.server.WebServerFactoryCustomizer<T>, org.springframework.core.Ordered

public class ManagementWebServerFactoryCustomizer<T extends org.springframework.boot.web.server.ConfigurableWebServerFactory> extends Object implements org.springframework.boot.web.server.WebServerFactoryCustomizer<T>, org.springframework.core.Ordered
WebServerFactoryCustomizer that customizes the WebServerFactory used to create the management context's web server.
Since:
2.0.0
  • Field Summary

    Fields inherited from interface org.springframework.core.Ordered

    HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
     
    ManagementWebServerFactoryCustomizer(org.springframework.beans.factory.ListableBeanFactory beanFactory)
    Creates a new customizer that will retrieve beans using the given beanFactory.
    protected
    ManagementWebServerFactoryCustomizer(org.springframework.beans.factory.ListableBeanFactory beanFactory, Class<? extends org.springframework.boot.web.server.WebServerFactoryCustomizer<?>>... customizerClasses)
    Deprecated, for removal: This API element is subject to removal in a future version.
  • Method Summary

    Modifier and Type
    Method
    Description
    final void
    customize(T factory)
     
    protected void
    customize(T factory, ManagementServerProperties managementServerProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)
     
    int
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ManagementWebServerFactoryCustomizer

      @SafeVarargs @Deprecated(since="3.5.0", forRemoval=true) protected ManagementWebServerFactoryCustomizer(org.springframework.beans.factory.ListableBeanFactory beanFactory, Class<? extends org.springframework.boot.web.server.WebServerFactoryCustomizer<?>>... customizerClasses)
      Deprecated, for removal: This API element is subject to removal in a future version.
    • ManagementWebServerFactoryCustomizer

      public ManagementWebServerFactoryCustomizer(org.springframework.beans.factory.ListableBeanFactory beanFactory)
      Creates a new customizer that will retrieve beans using the given beanFactory.
      Parameters:
      beanFactory - the bean factory to use
      Since:
      3.5.0
  • Method Details

    • getOrder

      public int getOrder()
      Specified by:
      getOrder in interface org.springframework.core.Ordered
    • customize

      public final void customize(T factory)
      Specified by:
      customize in interface org.springframework.boot.web.server.WebServerFactoryCustomizer<T extends org.springframework.boot.web.server.ConfigurableWebServerFactory>
    • customize

      protected void customize(T factory, ManagementServerProperties managementServerProperties, org.springframework.boot.autoconfigure.web.ServerProperties serverProperties)