Update Strategy Registry
object UpdateStrategyRegistry
A registry that maps ConfigParser implementations to their corresponding UpdateStrategy.
This registry allows associating a parser class with an update strategy so that ConfigLoader can automatically perform configuration updates when needed.
Typically, parser implementations register their strategy automatically (e.g., inside their constructor or init block), but additional strategies can be registered manually if necessary.
Example usage:
UpdateStrategyRegistry.register(MyParser::class.java, MyUpdateStrategy())Content copied to clipboard
Functions
Link copied to clipboard
Registers an UpdateStrategy for the given parser class. If a strategy is already registered for this parser class, this method does nothing.
Link copied to clipboard
Retrieves the registered UpdateStrategy for the given parser instance, or null if none registered.