Package org.restheart.plugins
Class FileConfigurablePlugin
- java.lang.Object
-
- org.restheart.plugins.FileConfigurablePlugin
-
- All Implemented Interfaces:
ConfigurablePlugin,Plugin
public abstract class FileConfigurablePlugin extends Object implements ConfigurablePlugin
An helper class that simplifies getting the Plugin args from a configuration file.- Author:
- Maurizio Turatti <maurizio@softinstigate.com>
-
-
Constructor Summary
Constructors Constructor Description FileConfigurablePlugin()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract Consumer<? super Map<String,Object>>consumeConfiguration()voidinit(Map<String,Object> arguments, String type)get the configuration args parsing the file specified in the Plugin argument 'conf-file'
-
-
-
Method Detail
-
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, ConfigurationException
get the configuration args parsing the file specified in the Plugin argument 'conf-file'- Parameters:
arguments-type-- Throws:
FileNotFoundExceptionConfigurationException
-
-