Class ManagementContextFactory
java.lang.Object
org.springframework.boot.actuate.autoconfigure.web.ManagementContextFactory
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
ConstructorDescriptionManagementContextFactory
(org.springframework.boot.WebApplicationType webApplicationType, Class<? extends org.springframework.boot.web.server.WebServerFactory> webServerFactoryClass, Class<?>... autoConfigurationClasses) -
Method Summary
Modifier and TypeMethodDescriptionorg.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)
-
Constructor Details
-
ManagementContextFactory
-
-
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)
-