Class StreamProviderAndSupplierRegistrar

java.lang.Object
energy.eddie.spring.regionconnector.extensions.StreamProviderAndSupplierRegistrar
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware

public class StreamProviderAndSupplierRegistrar extends Object implements org.springframework.beans.factory.SmartInitializingSingleton, org.springframework.context.ApplicationContextAware
Registrar for stream providers and suppliers within a Spring application context. This class scans the Spring context for beans with methods annotated with MessageStream. Based on the annotated methods, it registers providers and receivers into a MessageStreamHub.
  • Constructor Details

    • StreamProviderAndSupplierRegistrar

      public StreamProviderAndSupplierRegistrar()
  • Method Details

    • setApplicationContext

      public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext)
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
    • afterSingletonsInstantiated

      public void afterSingletonsInstantiated()
      Specified by:
      afterSingletonsInstantiated in interface org.springframework.beans.factory.SmartInitializingSingleton