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 aParametersInfo
annotation. TheParametersInfo
annotation is used to annotateHstComponent
classes. The interface referred to by theParametersInfo
annotation is returned as proxy by thecreateParameterInfoProxy(ParametersInfo, ParameterConfiguration, HttpServletRequest, HstParameterValueConverter)
method. The getters in the interface that are annotated with theParameter
annotation are delegated through the proxy to the backingComponentConfiguration
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description <T> T
createParameterInfoProxy(ParametersInfo parametersInfo, ParameterConfiguration parameterConfiguration, javax.servlet.http.HttpServletRequest request, HstParameterValueConverter converter)
Returns a proxy instance of the interface T.
-
-
-
Method Detail
-
createParameterInfoProxy
<T> T createParameterInfoProxy(ParametersInfo parametersInfo, ParameterConfiguration parameterConfiguration, javax.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
-
-