Class PropertiesParamPlugin
- java.lang.Object
-
- io.vertigo.core.plugins.param.properties.PropertiesParamPlugin
-
- All Implemented Interfaces:
ParamPlugin
,CoreComponent
,Plugin
public final class PropertiesParamPlugin extends Object implements ParamPlugin
Plugin de gestion de configuration de fichiers properties.- Author:
- skerdudou
-
-
Constructor Summary
Constructors Constructor Description PropertiesParamPlugin(ResourceManager resourceManager, String url)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Param>
getParam(String paramName)
Retourne un paramètre de configuration.
-
-
-
Constructor Detail
-
PropertiesParamPlugin
@Inject public PropertiesParamPlugin(ResourceManager resourceManager, String url) throws IOException
Constructor.- Parameters:
resourceManager
- Selectorurl
- Url du fichier XML de configuration- Throws:
IOException
- erreur de lecture du fichier
-
-
Method Detail
-
getParam
public Optional<Param> getParam(String paramName)
Retourne un paramètre de configuration. Retourne none si le paramètre n'est pas géré.- Specified by:
getParam
in interfaceParamPlugin
- Parameters:
paramName
- Param's name- Returns:
- Value of the param
-
-