Class LevelLoader.ChainingLoader

java.lang.Object
com.atlassian.oai.validator.report.LevelLoader.ChainingLoader
All Implemented Interfaces:
LevelLoader
Enclosing interface:
LevelLoader

public static class LevelLoader.ChainingLoader extends Object implements LevelLoader
A loader that chains multiple loaders together. Can be used to develop loading strategies to load levels from multiple locations.

Loaders will be used in the order they are provided in. The result is that keys loaded from later loaders will replace those loaded from earlier loaders.

Note that this mechanism only loads and overwrites individual keys. It will not apply any hierarchical rules to the loaded keys.

For example:

     l1 {
         a.b.c = ERROR
         a.b = IGNORE
     }

     l2 {
         a.b = WARN
     }

     chain(l1, l2) {
         a.b.c = ERROR
         a.b = WARN
     }
 
  • Constructor Details

    • ChainingLoader

      public ChainingLoader(LevelLoader... loaders)
  • Method Details