Class PropertyDescriptorUtils
- java.lang.Object
- 
- org.apache.myfaces.core.api.shared.lang.PropertyDescriptorUtils
 
- 
 public class PropertyDescriptorUtils extends Object 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static interfacePropertyDescriptorUtils.ObjBooleanConsumer<T>static interfacePropertyDescriptorUtils.ObjByteConsumer<T>static interfacePropertyDescriptorUtils.ObjCharConsumer<T>static interfacePropertyDescriptorUtils.ObjFloatConsumer<T>static interfacePropertyDescriptorUtils.ObjShortConsumer<T>
 - 
Field SummaryFields Modifier and Type Field Description static StringUSE_LAMBDA_METAFACTORYDefines if Lambda expressions (via LambdaMetafactory) are used for getter/setter instead of Reflection.
 - 
Constructor SummaryConstructors Constructor Description PropertyDescriptorUtils()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static LambdaPropertyDescriptorcreateLambdaPropertyDescriptor(Class<?> target, PropertyDescriptor pd, MethodHandles.Lookup lookup)protected static BiConsumercreateSetter(MethodHandles.Lookup lookup, LambdaPropertyDescriptor propertyInfo, MethodHandle setterHandle)protected static CallSitecreateSetterCallSite(MethodHandles.Lookup lookup, MethodHandle setter, Class<?> interfaceType, Class<?> valueType)static Map<String,? extends PropertyDescriptorWrapper>getCachedPropertyDescriptors(ExternalContext ec, Class<?> target)static LambdaPropertyDescriptorgetLambdaPropertyDescriptor(Class<?> target, String name)static Map<String,PropertyDescriptorWrapper>getLambdaPropertyDescriptors(Class<?> target)static Map<String,? extends PropertyDescriptorWrapper>getPropertyDescriptors(ExternalContext ec, Class<?> target)static booleanisUseLambdaMetafactory(ExternalContext ec)
 
- 
- 
- 
Field Detail- 
USE_LAMBDA_METAFACTORY@JSFWebConfigParam(since="2.3-next", defaultValue="false", expectedValues="true,false", tags="performance") public static final String USE_LAMBDA_METAFACTORYDefines if Lambda expressions (via LambdaMetafactory) are used for getter/setter instead of Reflection.- See Also:
- Constant Field Values
 
 
- 
 - 
Method Detail- 
getCachedPropertyDescriptorspublic static Map<String,? extends PropertyDescriptorWrapper> getCachedPropertyDescriptors(ExternalContext ec, Class<?> target) 
 - 
isUseLambdaMetafactorypublic static boolean isUseLambdaMetafactory(ExternalContext ec) 
 - 
getPropertyDescriptorspublic static Map<String,? extends PropertyDescriptorWrapper> getPropertyDescriptors(ExternalContext ec, Class<?> target) 
 - 
getLambdaPropertyDescriptorpublic static LambdaPropertyDescriptor getLambdaPropertyDescriptor(Class<?> target, String name) 
 - 
createLambdaPropertyDescriptorpublic static LambdaPropertyDescriptor createLambdaPropertyDescriptor(Class<?> target, PropertyDescriptor pd, MethodHandles.Lookup lookup) throws Throwable - Throws:
- Throwable
 
 - 
getLambdaPropertyDescriptorspublic static Map<String,PropertyDescriptorWrapper> getLambdaPropertyDescriptors(Class<?> target) throws Throwable - Throws:
- Throwable
 
 - 
createSetterprotected static BiConsumer createSetter(MethodHandles.Lookup lookup, LambdaPropertyDescriptor propertyInfo, MethodHandle setterHandle) throws LambdaConversionException, Throwable - Throws:
- LambdaConversionException
- Throwable
 
 - 
createSetterCallSiteprotected static CallSite createSetterCallSite(MethodHandles.Lookup lookup, MethodHandle setter, Class<?> interfaceType, Class<?> valueType) throws LambdaConversionException - Throws:
- LambdaConversionException
 
 
- 
 
-