Class RSocketPortInfoApplicationContextInitializer
java.lang.Object
org.springframework.boot.rsocket.context.RSocketPortInfoApplicationContextInitializer
- All Implemented Interfaces:
ApplicationContextInitializer<ConfigurableApplicationContext>
public class RSocketPortInfoApplicationContextInitializer
extends Object
implements ApplicationContextInitializer<ConfigurableApplicationContext>
ApplicationContextInitializer
that sets Environment
properties for the
ports that RSocketServer
servers are actually listening on. The property
"local.rsocket.server.port" can be injected directly into tests using
@Value
or obtained via the Environment
.
Properties are automatically propagated up to any parent context.
- Since:
- 2.2.0
- Author:
- Verónica Vásquez, Eddú Meléndez
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
initialize
(ConfigurableApplicationContext applicationContext)
-
Constructor Details
-
RSocketPortInfoApplicationContextInitializer
public RSocketPortInfoApplicationContextInitializer()
-
-
Method Details
-
initialize
- Specified by:
initialize
in interfaceApplicationContextInitializer<ConfigurableApplicationContext>
-