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.
Constructor and Description |
---|
RSocketPortInfoApplicationContextInitializer() |
Modifier and Type | Method and Description |
---|---|
void |
initialize(ConfigurableApplicationContext applicationContext) |
public RSocketPortInfoApplicationContextInitializer()
public void initialize(ConfigurableApplicationContext applicationContext)
initialize
in interface ApplicationContextInitializer<ConfigurableApplicationContext>
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.