Package org.restheart.plugins
Class FileConfigurablePlugin
java.lang.Object
org.restheart.plugins.FileConfigurablePlugin
- All Implemented Interfaces:
ConfigurablePlugin,Plugin
An helper class that simplifies getting the Plugin args from a configuration
file.
- Author:
- Maurizio Turatti <maurizio@softinstigate.com>
-
Constructor Details
-
FileConfigurablePlugin
public FileConfigurablePlugin()
-
-
Method Details
-
consumeConfiguration
public abstract Consumer<? super Map<String,Object>> consumeConfiguration() throws ConfigurationException- Throws:
ConfigurationException
-
init
public void init(Map<String, Object> arguments, String type) throws FileNotFoundException, ConfigurationExceptionget the configuration args parsing the file specified in the Plugin argument 'conf-file'- Parameters:
arguments-type-- Throws:
FileNotFoundExceptionConfigurationException
-