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.
|
Constructor and Description |
---|
HstParameterInfoProxyFactoryImpl() |
Modifier and Type | Method and Description |
---|---|
protected InvocationHandler |
createHstParameterInfoInvocationHandler(ComponentConfiguration componentConfig,
HstRequest request,
HstParameterValueConverter converter)
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 <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)
componentConfig
- request
- converter
- InvocationHandler
used in the created proxy to handle the invocationsCopyright © 2008-2013 Hippo B.V. (http://www.onehippo.com). All Rights Reserved.