Interface ParamManager

  • All Superinterfaces:
    Component, CoreComponent, Manager
    All Known Implementing Classes:
    ParamManagerImpl

    public interface ParamManager
    extends Manager
    Interface du gestionnaire de la configuration applicative. Une configuration possède une liste de paramètres. Un paramètre est - identifié par un nom. - camelCase.camelCase et ne contient que des lettres et chiffres; les séparateurs sont des points. Les paramètres sont de trois types : -boolean -String -int Exemple en json : { server.host : "wiki", server.port : "5455", maxUsers :"10", } getStringValue("server.host") => wiki getStringValue("host") => erreur.
    Author:
    pchretien, npiedeloup, prahmoune
    • Method Detail

      • getParam

        Param getParam​(String paramName)
        Returns the value for a param, defined by its name.
        Parameters:
        paramName - Name of the param
        Returns:
        the value of the param
      • getOptionalParam

        Optional<Param> getOptionalParam​(String paramName)
        Returns the optional value for a param which may be present / or not, defined by its name.
        Parameters:
        paramName -
        Returns:
        the optional value of the param