Package org.hippoecm.hst.core.component
Interface HstParameterInfoProxyFactory
public interface HstParameterInfoProxyFactory
HstParameterInfoProxyFactory is a factory interface for creating a proxy for an interface that is referred to by a
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, ParameterConfiguration, HttpServletRequest, HstParameterValueConverter)
method. The getters in the interface that are
annotated with the Parameter
annotation are delegated through the proxy to the backing ComponentConfiguration
-
Method Summary
Modifier and TypeMethodDescription<T> T
createParameterInfoProxy
(ParametersInfo parametersInfo, ParameterConfiguration parameterConfiguration, jakarta.servlet.http.HttpServletRequest request, HstParameterValueConverter converter) Returns a proxy instance of the interface T.
-
Method Details
-
createParameterInfoProxy
<T> T createParameterInfoProxy(ParametersInfo parametersInfo, ParameterConfiguration parameterConfiguration, jakarta.servlet.http.HttpServletRequest request, HstParameterValueConverter converter) Returns a proxy instance of the interface T. The proxy delegates theParameter
annotated getters in the interface T to the backingComponentConfiguration
parameters, thus toParameterConfiguration.getParameter(String, org.hippoecm.hst.core.request.ResolvedSiteMapItem)
- Type Parameters:
T
- proxy instance of the interface T- Parameters:
parametersInfo
- the ParametersInfo annotationparameterConfiguration
- the backingParameterConfiguration
request
- theHttpServletRequest
converter
- the HstParameterValueConverter that does the actual conversion- Returns:
- proxy instance of the interface T
- Throws:
IllegalArgumentException
- ifParametersInfo.type()
does not return an interface or whenparameterValueConverter
isnull
-