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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext)
-
Constructor Details
-
StreamProviderAndSupplierRegistrar
public StreamProviderAndSupplierRegistrar()
-
-
Method Details
-
setApplicationContext
public void setApplicationContext(@NonNull org.springframework.context.ApplicationContext applicationContext) - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware
-
afterSingletonsInstantiated
public void afterSingletonsInstantiated()- Specified by:
afterSingletonsInstantiatedin interfaceorg.springframework.beans.factory.SmartInitializingSingleton
-