- All Implemented Interfaces:
- com.foreach.across.config.AcrossContextConfigurer, com.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer, EventListener, org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.context.ApplicationListener<org.springframework.cloud.context.environment.EnvironmentChangeEvent>
@Configuration
@ConditionalOnClass(value={org.springframework.cloud.autoconfigure.RefreshAutoConfiguration.class,org.springframework.cloud.context.scope.refresh.RefreshScope.class})
@Import(value=org.springframework.cloud.autoconfigure.RefreshAutoConfiguration.class)
public class CloudRefreshAutoConfigurationAdapter
extends Object
implements com.foreach.across.config.AcrossContextConfigurer, org.springframework.context.ApplicationContextAware, com.foreach.across.core.context.bootstrap.AcrossBootstrapConfigurer, org.springframework.context.ApplicationListener<org.springframework.cloud.context.environment.EnvironmentChangeEvent>
Adapts Spring Cloud refresh support for an Across application.
This class injects support for the RefreshScope in the Across context itself,
as well as in every Across module. It also acts as an application listener for the
EnvironmentChangeEvent and implements custom code for refreshing the Across
context beans and updating the module environments when a change event happens.
- Since:
- 1.0.0
- Author:
- Arne Vandamme