Class DynamicPortCustomizer
java.lang.Object
xyz.nardone.agenda_fps.servizio.DynamicPortCustomizer
- All Implemented Interfaces:
org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.server.ConfigurableWebServerFactory>
@Component
public class DynamicPortCustomizer
extends Object
implements org.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.server.ConfigurableWebServerFactory>
Assigns a free port within a range when the service boots.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(org.springframework.boot.web.server.ConfigurableWebServerFactory factory)
-
Constructor Details
-
DynamicPortCustomizer
public DynamicPortCustomizer()
-
-
Method Details
-
customize
public void customize(org.springframework.boot.web.server.ConfigurableWebServerFactory factory) - Specified by:
customizein interfaceorg.springframework.boot.web.server.WebServerFactoryCustomizer<org.springframework.boot.web.server.ConfigurableWebServerFactory>
-