Class ParamManagerImpl

java.lang.Object
io.vertigo.core.impl.param.ParamManagerImpl
All Implemented Interfaces:
Component, CoreComponent, Manager, ParamManager

public final class ParamManagerImpl extends Object implements ParamManager
This class implements the default paramManager. The strategy to access params is defined by a list of plugins.
Author:
pchretien, npiedeloup
  • Constructor Details

    • ParamManagerImpl

      @Inject public ParamManagerImpl(List<ParamPlugin> paramPlugins)
      Constructor.
      Parameters:
      paramPlugins - the list of plugins
  • Method Details

    • getParam

      public Param getParam(String paramName)
      Returns the value for a parameter identified by its name.
      Specified by:
      getParam in interface ParamManager
      Parameters:
      paramName - the name of the parameter
      Returns:
      the value of the parameter
    • getOptionalParam

      public Optional<Param> getOptionalParam(String paramName)
      Description copied from interface: ParamManager
      Returns the optional value for a parameter, which may be present or not, identified by its name.
      Specified by:
      getOptionalParam in interface ParamManager
      Parameters:
      paramName - the name of the parameter
      Returns:
      the optional value of the parameter