Package org.hippoecm.hst.core.parameters
Interface ParametersInfoProvider
-
public interface ParametersInfoProvider
Provides a resolved ParametersInfo object for HstComponents or JAX-RS service components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
getParametersInfo()
Returns a ParametersInfo object which resolves parameter from the underlying parameters stored inHstComponentConfiguration
,HstSiteMapItem
orMount
, depending on which 'component' is in the context.
-
-
-
Method Detail
-
getParametersInfo
<T> T getParametersInfo()
Returns a ParametersInfo object which resolves parameter from the underlying parameters stored inHstComponentConfiguration
,HstSiteMapItem
orMount
, depending on which 'component' is in the context.For example, an
HstComponent
could get a ParametersInfo object of which the parameters are backed by anHstComponentConfiguration
. Or a JAX-RS service component could be a ParametersInfo object of which the parameters are backed by eitherHstSiteMapItem
orMount
The parameter resolution means that possible property placeholders like ${1} or ${year}, where the first refers to the first wildcard matcher in a resolved sitemap item, and the latter to a resolved parameter in the resolved HstSiteMapItem.
NOTE: Because the returned ParametersInfo proxy instance is bound to the current request, you MUST NOT store the returned object in a member variable or session. You should retrieve that per request.
- Returns:
- a ParametersInfo object which resolves parameter from the underlying parameters stored in
HstComponentConfiguration
,HstSiteMapItem
orMount
, depending on which 'component' is in the context. Null if nothing is available.
-
-