public class ReflectionContextState extends Object
Modifier and Type | Field and Description |
---|---|
static String |
CREATE_NULL_OBJECTS |
static String |
CURRENT_PROPERTY_PATH |
static String |
DENY_INDEXED_ACCESS_EXECUTION |
static String |
DENY_METHOD_EXECUTION |
static String |
FULL_PROPERTY_PATH |
Constructor and Description |
---|
ReflectionContextState() |
public static final String CURRENT_PROPERTY_PATH
public static final String FULL_PROPERTY_PATH
public static final String CREATE_NULL_OBJECTS
public static final String DENY_METHOD_EXECUTION
public static final String DENY_INDEXED_ACCESS_EXECUTION
public static void setCreatingNullObjects(Map<String,Object> context, boolean creatingNullObjects)
public static void setDenyMethodExecution(Map<String,Object> context, boolean denyMethodExecution)
public static void setGettingByKeyProperty(Map<String,Object> context, boolean gettingByKeyProperty)
public static boolean isReportingConversionErrors(Map<String,Object> context)
public static void setReportingConversionErrors(Map<String,Object> context, boolean reportingErrors)
public static void setLastBeanPropertyAccessed(Map<String,Object> context, String property)
public static String getLastBeanPropertyAccessed(Map<String,Object> context)
public static void setLastBeanClassAccessed(Map<String,Object> context, Class clazz)
public static String getCurrentPropertyPath(Map<String,Object> context)
Gets the current property path but not completely. It does not use the [ and ] used in some representations of Maps and Lists. The reason for this is that the current property path is only currently used for caching purposes so there is no real reason to have an exact replica.
So if the real path is myProp.myMap['myKey'] this would return myProp.myMap.myKey.
context
- context mappublic static void updateCurrentPropertyPath(Map<String,Object> context, Object name)
public static void setSetMap(Map<String,Object> context, Map<Object,Object> setMap, String path)
public static void clearCurrentPropertyPath(Map<String,Object> context)
context
- the context mapCopyright © 2000–2020 Apache Software Foundation. All rights reserved.