org.springframework.boot.rsocket.context

Class RSocketPortInfoApplicationContextInitializer

  • java.lang.Object
    • org.springframework.boot.rsocket.context.RSocketPortInfoApplicationContextInitializer
  • All Implemented Interfaces:
    org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>


    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 via the Environment.

    Properties are automatically propagated up to any parent context.

    Since:
    2.2.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext) 
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RSocketPortInfoApplicationContextInitializer

        public RSocketPortInfoApplicationContextInitializer()
    • Method Detail

      • initialize

        public void initialize(org.springframework.context.ConfigurableApplicationContext applicationContext)
        Specified by:
        initialize in interface org.springframework.context.ApplicationContextInitializer<org.springframework.context.ConfigurableApplicationContext>