public class HstParameterInfoProxyFactoryImpl extends Object implements HstParameterInfoProxyFactory
Modifier and Type | Class and Description |
---|---|
protected static class |
HstParameterInfoProxyFactoryImpl.ParameterInfoInvocationHandler
This class has visibility 'protected' to enable reuse.
|
static interface |
HstParameterInfoProxyFactoryImpl.TemplateParameterInfo |
static class |
HstParameterInfoProxyFactoryImpl.TemplateParameterInfoHolder |
Modifier and Type | Field and Description |
---|---|
static String |
TEMPLATE_PARAM_NAME |
static HstParameterInfoProxyFactoryImpl.TemplateParameterInfoHolder |
TEMPLATE_PARAMETER_INFO_HOLDER |
Constructor and Description |
---|
HstParameterInfoProxyFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
protected InvocationHandler |
createHstParameterInfoInvocationHandler(ComponentConfiguration componentConfig,
HstRequest request,
HstParameterValueConverter converter,
Class<?> parametersInfoType)
Override this method if a custom parameterInfoHandler is needed
|
<T> T |
createParameterInfoProxy(ParametersInfo parametersInfo,
ComponentConfiguration componentConfig,
HstRequest request,
HstParameterValueConverter converter)
Returns a proxy instance of the interface T.
|
public static final String TEMPLATE_PARAM_NAME
public static final HstParameterInfoProxyFactoryImpl.TemplateParameterInfoHolder TEMPLATE_PARAMETER_INFO_HOLDER
public <T> T createParameterInfoProxy(ParametersInfo parametersInfo, ComponentConfiguration componentConfig, HstRequest request, HstParameterValueConverter converter)
HstParameterInfoProxyFactory
Parameter
annotated getters in the interface T to the backing ComponentConfiguration
parameters,
thus to ComponentConfiguration.getParameter(String, org.hippoecm.hst.core.request.ResolvedSiteMapItem)
createParameterInfoProxy
in interface HstParameterInfoProxyFactory
T
- proxy instance of the interface TparametersInfo
- the ParametersInfo annotation of the HstComponent
componentConfig
- the backing ComponentConfiguration
of the HstComponent
request
- the HstRequest
converter
- the HstParameterValueConverter that does the actual conversionprotected InvocationHandler createHstParameterInfoInvocationHandler(ComponentConfiguration componentConfig, HstRequest request, HstParameterValueConverter converter, Class<?> parametersInfoType)
componentConfig
- request
- converter
- parametersInfoType
- InvocationHandler
used in the created proxy to handle the invocationsCopyright © 2008–2016 Hippo B.V. (http://www.onehippo.com). All rights reserved.