yml file runtime updates

Issue #313 resolved
Former user created an issue

does snakeyaml support runtime updates to resource files? Any plan to add this feature?

Comments (4)

  1. Andrey Somov

    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 ?

  2. Former user 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)

  3. Andrey Somov
    1. 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.
    2. 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.
  4. Log in to comment