-
Notifications
You must be signed in to change notification settings - Fork 14
io microsphere multiple active zone spring event ZoneContextChangedListener
github-actions[bot] edited this page Jun 20, 2026
·
5 revisions
Type: Class | Module: microsphere-multiactive-spring | Package: io.microsphere.multiple.active.zone.spring.event | Since: 1.0.0
A listener to change the ZoneContext on one of those being raised :
- `#APPLICATION_STARTED_EVENT_CLASS_NAME org.springframework.boot.context.event.ApplicationStartedEvent`
- `#ENVIRONMENT_CHANGE_EVENT_CLASS_NAME org.springframework.cloud.context.environment.EnvironmentChangeEvent`
- `ContextRefreshedEvent`
public class ZoneContextChangedListener implements SmartApplicationListener, ApplicationContextAware, EnvironmentAwareAuthor: Mercy
-
Introduced in:
1.0.0 -
Current Project Version:
0.2.7-SNAPSHOT
This component is tested and compatible with the following Java versions:
| Java Version | Status |
|---|---|
| Java 17 | ✅ Compatible |
| Java 21 | ✅ Compatible |
| Java 25 | ✅ Compatible |
Add the following dependency to your pom.xml:
<dependency>
<groupId>io.github.microsphere-projects</groupId>
<artifactId>microsphere-multiactive-spring</artifactId>
<version>${microsphere-multiactive.version}</version>
</dependency>Tip: Use the BOM (
microsphere-multiactive-dependencies) for consistent version management. See the Getting Started guide.
import io.microsphere.multiple.active.zone.spring.event.ZoneContextChangedListener;| Method | Description |
|---|---|
supportsEventType |
|
onApplicationEvent |
|
setApplicationContext |
|
setEnvironment |
ZoneContext
This documentation was auto-generated from the source code of microsphere-multiactive.
multiactive-aws
- Ec2AvailabilityZoneEndpointZoneLocator
- EcsContainerMetadataFileZoneLocator
- EcsTaskMetadataEndpointV4ZoneLocator
multiactive-commons
multiactive-netflix
- DiscoveryClientServer
- DiscoveryClientServerList
- EurekaInstanceInfoZoneResolver
- RibbonServerZoneResolver
- ZoneAttachmentPreRegistrationHandler
- ZonePreferenceServerListFilter
multiactive-spring
- AbstractZoneLocator
- CompositeZoneLocator
- DefaultZoneLocator
- ZoneContextChangedEvent
- ZoneContextChangedListener
- ZoneLocator
- ZoneUtils
multiactive-spring-boot
multiactive-spring-cloud