Class PropertyDescriptorUtils
java.lang.Object
org.apache.myfaces.core.api.shared.lang.PropertyDescriptorUtils
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interface
static interface
static interface
static interface
static interface
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Defines if Lambda expressions (via LambdaMetafactory) are used for getter/setter instead of Reflection. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic 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,
PropertyDescriptorWrapper> getLambdaPropertyDescriptors
(Class<?> target) static Map<String,
? extends PropertyDescriptorWrapper> getPropertyDescriptors
(ExternalContext ec, Class<?> target) static boolean
-
Field Details
-
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:
-
-
Constructor Details
-
PropertyDescriptorUtils
public PropertyDescriptorUtils()
-
-
Method Details
-
getCachedPropertyDescriptors
public static Map<String,? extends PropertyDescriptorWrapper> getCachedPropertyDescriptors(ExternalContext ec, Class<?> target) -
isUseLambdaMetafactory
-
getPropertyDescriptors
public static Map<String,? extends PropertyDescriptorWrapper> getPropertyDescriptors(ExternalContext ec, Class<?> target) -
getLambdaPropertyDescriptor
-
createLambdaPropertyDescriptor
public static LambdaPropertyDescriptor createLambdaPropertyDescriptor(Class<?> target, PropertyDescriptor pd, MethodHandles.Lookup lookup) throws Throwable - Throws:
Throwable
-
getLambdaPropertyDescriptors
public static Map<String,PropertyDescriptorWrapper> getLambdaPropertyDescriptors(Class<?> target) throws Throwable - Throws:
Throwable
-
createSetterCallSite
protected static CallSite createSetterCallSite(MethodHandles.Lookup lookup, MethodHandle setter, Class<?> interfaceType, Class<?> valueType) throws LambdaConversionException - Throws:
LambdaConversionException
-