public class LogConfigListener extends AbstractConfigListener
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| 构造器和说明 |
|---|
LogConfigListener() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
afterConfigLoaded(ConfigKey configKey,
ConfigSource configSource,
List<ConfigSource> configSourceList)
Do something when loaded config
|
int |
getOrder()
Get the order value of this object.
|
void |
onLoadDefaultValue(ConfigKey key,
Object defaultValue)
Do something when loaded defaultValue
|
beforeConfigLoadingpublic void afterConfigLoaded(ConfigKey configKey, ConfigSource configSource, List<ConfigSource> configSourceList)
ManagementListenerafterConfigLoaded 在接口中 ManagementListenerafterConfigLoaded 在类中 AbstractConfigListenerconfigKey - key of configconfigSource - config source which config loads fromconfigSourceList - all config sourcespublic void onLoadDefaultValue(ConfigKey key, Object defaultValue)
ManagementListeneronLoadDefaultValue 在接口中 ManagementListeneronLoadDefaultValue 在类中 AbstractConfigListenerpublic int getOrder()
OrderedHigher values are interpreted as lower priority. As a consequence,
the object with the lowest value has the highest priority (somewhat
analogous to Servlet load-on-startup values).
Same order values will result in arbitrary sort positions for the affected objects.
Ordered.HIGHEST_PRECEDENCE,
Ordered.LOWEST_PRECEDENCECopyright © 2021. All rights reserved.