Class ManagementContextFactory

java.lang.Object
org.springframework.boot.actuate.autoconfigure.web.ManagementContextFactory

public final class ManagementContextFactory extends Object
Factory for creating a separate management context when the management web server is running on a different port to the main application.

For internal use only.

Since:
3.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    ManagementContextFactory(org.springframework.boot.WebApplicationType webApplicationType, Class<? extends org.springframework.boot.web.server.WebServerFactory> webServerFactoryClass, Class<?>... autoConfigurationClasses)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.context.ConfigurableApplicationContext
    createManagementContext(org.springframework.context.ApplicationContext parentContext)
     
    void
    registerWebServerFactoryBeans(org.springframework.context.ApplicationContext parentContext, org.springframework.context.ConfigurableApplicationContext managementContext, org.springframework.context.annotation.AnnotationConfigRegistry registry)
     

    Methods inherited from class java.lang.Object

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

    • ManagementContextFactory

      public ManagementContextFactory(org.springframework.boot.WebApplicationType webApplicationType, Class<? extends org.springframework.boot.web.server.WebServerFactory> webServerFactoryClass, Class<?>... autoConfigurationClasses)
  • Method Details

    • createManagementContext

      public org.springframework.context.ConfigurableApplicationContext createManagementContext(org.springframework.context.ApplicationContext parentContext)
    • registerWebServerFactoryBeans

      public void registerWebServerFactoryBeans(org.springframework.context.ApplicationContext parentContext, org.springframework.context.ConfigurableApplicationContext managementContext, org.springframework.context.annotation.AnnotationConfigRegistry registry)