public class RSocketPortInfoApplicationContextInitializer
extends java.lang.Object
implements org.springframework.context.ApplicationContextInitializer<org.springframework.context.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 through the Environment
.
Properties are automatically propagated up to any parent context.
Constructor and Description |
---|
RSocketPortInfoApplicationContextInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) |