@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    @Lazy(false)
    public CasServicesRegistryStreamingEventListener casServicesRegistryStreamingEventListener(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("casRegisteredServiceStreamPublisher")
        final CasRegisteredServiceStreamPublisher casRegisteredServiceStreamPublisher,
        @Qualifier("casRegisteredServiceStreamPublisherIdentifier")
        final PublisherIdentifier casRegisteredServiceStreamPublisherIdentifier) {
        return BeanSupplier.of(CasServicesRegistryStreamingEventListener.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new DefaultCasServicesRegistryStreamingEventListener(casRegisteredServiceStreamPublisher,
                casRegisteredServiceStreamPublisherIdentifier))
            .otherwiseProxy()
            .get();
    }
This is {@link CasServicesStreamingAutoConfiguration}.

@author Misagh Moayyed
@since 5.2.0
support/cas-server-support-service-registry-stream/src/main/java/org/apereo/cas/config/CasServicesStreamingAutoConfiguration.java