org.hippoecm.hst.core.component
Interface HstParameterInfoProxyFactory

All Known Implementing Classes:
HstParameterInfoProxyFactoryImpl

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, ComponentConfiguration, HstRequest) method. The getters in the interface that are annotated with the Parameter annotation are delegated through the proxy to the backing ComponentConfiguration


Method Summary
<T> T
createParameterInfoProxy(ParametersInfo parametersInfo, ComponentConfiguration componentConfig, HstRequest request)
          Returns a proxy instance of the interface T.
 

Method Detail

createParameterInfoProxy

<T> T createParameterInfoProxy(ParametersInfo parametersInfo,
                               ComponentConfiguration componentConfig,
                               HstRequest request)
Returns a proxy instance of the interface T. The proxy delegates the Parameter annotated getters in the interface T to the backing ComponentConfiguration parameters, thus to ComponentConfiguration.getParameter(String, org.hippoecm.hst.core.request.ResolvedSiteMapItem)

Type Parameters:
T - proxy instance of the interface T
Parameters:
parametersInfo - the ParametersInfo annotation of the HstComponent
componentConfig - the backing ComponentConfiguration of the HstComponent
request - the HstRequest
Returns:
proxy instance of the interface T


Copyright © 2008-2012 Hippo. All Rights Reserved.