Package io.vertigo.core.impl.param
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 Summary
Constructors Constructor Description ParamManagerImpl(List<ParamPlugin> paramPlugins)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<Param>
getOptionalParam(String paramName)
Returns the optional value for a param which may be present / or not, defined by its name.Param
getParam(String paramName)
Returns the value for a param, defined by its name.
-
-
-
Constructor Detail
-
ParamManagerImpl
@Inject public ParamManagerImpl(List<ParamPlugin> paramPlugins)
Constructor.- Parameters:
paramPlugins
- the list of plugins
-
-
Method Detail
-
getParam
public Param getParam(String paramName)
Returns the value for a param, defined by its name.- Specified by:
getParam
in interfaceParamManager
- Parameters:
paramName
- Name of the param- Returns:
- the value of the param
-
getOptionalParam
public Optional<Param> getOptionalParam(String paramName)
Description copied from interface:ParamManager
Returns the optional value for a param which may be present / or not, defined by its name.- Specified by:
getOptionalParam
in interfaceParamManager
- Returns:
- the optional value of the param
-
-