yml file runtime updates
Issue #313
resolved
does snakeyaml support runtime updates to resource files? Any plan to add this feature?
Comments (4)
-
-
Account Deleted Like for e.g., logging components like logback and log4j 2, allows to update the logging properties @runtime, by polling the file update status every x seconds, or using java nio FileWatcher service (java.nio.file.WatchService)
-
- Well, normally "resources" under JVM are files which are searched/loaded/managed by the ClassLoader. The rules to find resources are specified when the JVM is launched. The configuration files for log4j do not use ClassLoader but require full path to the file - standard I/O operation.
- What kind of feature it should be ? You can detect the files changes and re-parse the YAML file with SnakeYAML. You do not need any additional features.
-
- changed status to resolved
Since no clarification is provided, we assume that the issue is solved.
- Log in to comment
Is it a question about the JVM class loader ? If yes, can you please show an example of an application which is using this approach ?