public interface HstParameterInfoProxyFactory
ParametersInfo
annotation.
The ParametersInfo
annotation is used to annotate HstComponent
classes. The interface referred to by the ParametersInfo
annotation
is returned as proxy by the #createParameterInfoProxy(ParametersInfo, ComponentConfiguration, HstRequest, HstParameterValueConverter)
method. The getters in the interface that are
annotated with the Parameter
annotation are delegated through the proxy to the backing ComponentConfiguration
Modifier and Type | Method and Description |
---|---|
<T> T |
createParameterInfoProxy(org.hippoecm.hst.core.parameters.ParametersInfo parametersInfo,
ParameterConfiguration parameterConfiguration,
javax.servlet.http.HttpServletRequest request,
HstParameterValueConverter converter)
Returns a proxy instance of the interface T.
|
<T> T createParameterInfoProxy(org.hippoecm.hst.core.parameters.ParametersInfo parametersInfo, ParameterConfiguration parameterConfiguration, javax.servlet.http.HttpServletRequest request, HstParameterValueConverter converter)
Parameter
annotated getters in the interface T to the backing ComponentConfiguration
parameters,
thus to ParameterConfiguration.getParameter(String, org.hippoecm.hst.core.request.ResolvedSiteMapItem)
T
- proxy instance of the interface TparametersInfo
- the ParametersInfo annotationparameterConfiguration
- the backing ParameterConfiguration
request
- the HttpServletRequest
converter
- the HstParameterValueConverter that does the actual conversionIllegalArgumentException
- if ParametersInfo.type()
does not return an interface or when parameterValueConverter
is null
Copyright © 2008–2020 Hippo B.V. (http://www.onehippo.com). All rights reserved.