public class AutoUpdateConfigChangeListener extends Object implements ConfigChangeListener, org.springframework.context.ApplicationListener<ApolloConfigChangeEvent>, org.springframework.context.ApplicationContextAware
| Constructor and Description |
|---|
AutoUpdateConfigChangeListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onApplicationEvent(ApolloConfigChangeEvent event) |
void |
onChange(ConfigChangeEvent changeEvent)
Invoked when there is any config change for the namespace.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
public void onChange(ConfigChangeEvent changeEvent)
ConfigChangeListeneronChange in interface ConfigChangeListenerchangeEvent - the event for this changepublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareorg.springframework.beans.BeansExceptionpublic void onApplicationEvent(ApolloConfigChangeEvent event)
onApplicationEvent in interface org.springframework.context.ApplicationListener<ApolloConfigChangeEvent>Copyright © 2023. All rights reserved.