org.hippoecm.hst.core.component
Class HstParameterInfoProxyFactoryImpl
java.lang.Object
org.hippoecm.hst.core.component.HstParameterInfoProxyFactoryImpl
- All Implemented Interfaces:
- HstParameterInfoProxyFactory
public class HstParameterInfoProxyFactoryImpl
- extends Object
- implements HstParameterInfoProxyFactory
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HstParameterInfoProxyFactoryImpl
public HstParameterInfoProxyFactoryImpl()
createParameterInfoProxy
public <T> T createParameterInfoProxy(ParametersInfo parametersInfo,
ComponentConfiguration componentConfig,
HstRequest request)
- Description copied from interface:
HstParameterInfoProxyFactory
- 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)
- Specified by:
createParameterInfoProxy
in interface HstParameterInfoProxyFactory
- 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
createHstParameterInfoInvocationHandler
protected InvocationHandler createHstParameterInfoInvocationHandler(ComponentConfiguration componentConfig,
HstRequest request)
- Override this method if a custom parameterInfoHandler is needed
- Parameters:
componentConfig
- request
- parameterValueConverter
-
- Returns:
- the
HstParameterInfoInvocationHandler
used in the created proxy to handle the invocations
isGetter
public static final boolean isGetter(Method method,
Object[] args)
isSetter
public static final boolean isSetter(Method method,
Object[] args)
Copyright © 2008-2012 Hippo. All Rights Reserved.