public class LogConfigListener extends AbstractConfigListener
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
LogConfigListener() |
| Modifier and Type | Method and Description |
|---|---|
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 in interface ManagementListenerafterConfigLoaded in class AbstractConfigListenerconfigKey - key of configconfigSource - config source which config loads fromconfigSourceList - all config sourcespublic void onLoadDefaultValue(ConfigKey key, Object defaultValue)
ManagementListeneronLoadDefaultValue in interface ManagementListeneronLoadDefaultValue in class 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 © 2024. All rights reserved.