mirror of
https://github.com/itplr-kosit/validator.git
synced 2026-05-25 16:55:39 +00:00
some cleanup
This commit is contained in:
parent
1a001a1af4
commit
7dc62012a6
22 changed files with 144 additions and 50 deletions
|
|
@ -175,11 +175,27 @@ public class ConfigurationLoader {
|
|||
return s;
|
||||
}
|
||||
|
||||
/**
|
||||
* Sets actual {@link ResolvingMode}, when the validator needs to resolve stuff on startup.
|
||||
* @param mode the resolving mode
|
||||
* @return this
|
||||
*/
|
||||
public ConfigurationLoader setResolvingMode(final ResolvingMode mode) {
|
||||
this.resolvingMode = mode;
|
||||
return this;
|
||||
}
|
||||
|
||||
public ConfigurationLoader setResolvingStrategy(final ResolvingConfigurationStrategy strategy){
|
||||
this.resolvingConfigurationStrategy = strategy;
|
||||
return this;
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a parameter to the configuration.
|
||||
* @param name the name of the parameter
|
||||
* @param value the parameter value object
|
||||
* @return this
|
||||
*/
|
||||
public ConfigurationLoader addParameter(final String name, final Object value) {
|
||||
this.parameters.put(name, value);
|
||||
return this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue