public class PropertyDescriptorUtils extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
PropertyDescriptorUtils.ObjBooleanConsumer<T> |
static interface |
PropertyDescriptorUtils.ObjByteConsumer<T> |
static interface |
PropertyDescriptorUtils.ObjCharConsumer<T> |
static interface |
PropertyDescriptorUtils.ObjFloatConsumer<T> |
static interface |
PropertyDescriptorUtils.ObjShortConsumer<T> |
Modifier and Type | Field and Description |
---|---|
static String |
USE_LAMBDA_METAFACTORY
Defines if Lambda expressions (via LambdaMetafactory) are used for getter/setter instead of Reflection.
|
Constructor and Description |
---|
PropertyDescriptorUtils() |
Modifier and Type | Method and Description |
---|---|
static LambdaPropertyDescriptor |
createLambdaPropertyDescriptor(Class<?> target,
PropertyDescriptor pd,
MethodHandles.Lookup lookup) |
protected static BiConsumer |
createSetter(MethodHandles.Lookup lookup,
LambdaPropertyDescriptor propertyInfo,
MethodHandle setterHandle) |
protected static CallSite |
createSetterCallSite(MethodHandles.Lookup lookup,
MethodHandle setter,
Class<?> interfaceType,
Class<?> valueType) |
static Map<String,? extends PropertyDescriptorWrapper> |
getCachedPropertyDescriptors(ExternalContext ec,
Class<?> target) |
static LambdaPropertyDescriptor |
getLambdaPropertyDescriptor(Class<?> target,
String name) |
static Map<String,LambdaPropertyDescriptor> |
getLambdaPropertyDescriptors(Class<?> target) |
static Map<String,? extends PropertyDescriptorWrapper> |
getPropertyDescriptors(ExternalContext ec,
Class<?> target) |
static boolean |
isUseLambdaMetafactory(ExternalContext ec) |
@JSFWebConfigParam(since="2.3-next", defaultValue="true", expectedValues="true,false", tags="performance") public static final String USE_LAMBDA_METAFACTORY
public static Map<String,? extends PropertyDescriptorWrapper> getCachedPropertyDescriptors(ExternalContext ec, Class<?> target)
public static boolean isUseLambdaMetafactory(ExternalContext ec)
public static Map<String,? extends PropertyDescriptorWrapper> getPropertyDescriptors(ExternalContext ec, Class<?> target)
public static LambdaPropertyDescriptor getLambdaPropertyDescriptor(Class<?> target, String name)
public static LambdaPropertyDescriptor createLambdaPropertyDescriptor(Class<?> target, PropertyDescriptor pd, MethodHandles.Lookup lookup) throws Throwable
Throwable
public static Map<String,LambdaPropertyDescriptor> getLambdaPropertyDescriptors(Class<?> target) throws Throwable
Throwable
protected static BiConsumer createSetter(MethodHandles.Lookup lookup, LambdaPropertyDescriptor propertyInfo, MethodHandle setterHandle) throws LambdaConversionException, Throwable
LambdaConversionException
Throwable
protected static CallSite createSetterCallSite(MethodHandles.Lookup lookup, MethodHandle setter, Class<?> interfaceType, Class<?> valueType) throws LambdaConversionException
LambdaConversionException
Copyright © 2021 The Apache Software Foundation. All rights reserved.