@Bean
    @RefreshScope(proxyMode = ScopedProxyMode.DEFAULT)
    public CasRegisteredServiceStreamPublisher casRegisteredServiceStreamPublisher(
        final ConfigurableApplicationContext applicationContext,
        @Qualifier("registeredServiceDistributedCacheManager")
        final DistributedCacheManager<RegisteredService, DistributedCacheObject<RegisteredService>, PublisherIdentifier> registeredServiceDistributedCacheManager) {
        return BeanSupplier.of(CasRegisteredServiceStreamPublisher.class)
            .when(CONDITION.given(applicationContext.getEnvironment()))
            .supply(() -> new DefaultCasRegisteredServiceStreamPublisher(registeredServiceDistributedCacheManager))
            .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