Class JSONRegionAdvice
java.lang.Object
org.springframework.data.gemfire.serialization.json.JSONRegionAdvice
Spring/AspectJ AOP Aspect adapting a
Region
to handle JSON data.- See Also:
-
Region
JSONFormatter
PdxInstance
Aspect
Around
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget
(org.aspectj.lang.ProceedingJoinPoint pjp) getAll
(org.aspectj.lang.ProceedingJoinPoint pjp) put
(org.aspectj.lang.ProceedingJoinPoint pjp) putAll
(org.aspectj.lang.ProceedingJoinPoint pjp) void
setConvertReturnedCollections
(boolean convertReturnedCollections) Flag to convert collections returned from cache from @{link PdxInstance} to JSON String.void
setIncludedRegionNames
(List<String> regionNames) Sets names of regions to be included for JSON conversion.void
setIncludedRegions
(List<org.apache.geode.cache.Region<?, ?>> regions) Sets regions to be included for JSON conversion.void
setPrettyPrint
(boolean prettyPrint) Flag to print JSON Strings with proper indentation, etc.templateQuery
(org.aspectj.lang.ProceedingJoinPoint pjp) values
(org.aspectj.lang.ProceedingJoinPoint pjp)
-
Field Details
-
logger
protected final org.slf4j.Logger logger
-
-
Constructor Details
-
JSONRegionAdvice
public JSONRegionAdvice()
-
-
Method Details
-
setConvertReturnedCollections
public void setConvertReturnedCollections(boolean convertReturnedCollections) Flag to convert collections returned from cache from @{link PdxInstance} to JSON String. If the returned collections are very large, overhead will be incurred to covert all the values from from Region.getAll() and Region.values()- Parameters:
convertReturnedCollections
- true by default
-
setIncludedRegions
Sets regions to be included for JSON conversion. By default, all regions will be included- Parameters:
regions
- a List of region names to include
-
setIncludedRegionNames
Sets names of regions to be included for JSON conversion. By default, all regions will be included- Parameters:
regionNames
- a List of region names to include
-
setPrettyPrint
public void setPrettyPrint(boolean prettyPrint) Flag to print JSON Strings with proper indentation, etc.- Parameters:
prettyPrint
- false be default
-
get
-
getAll
-
put
-
putAll
-
values
-
templateQuery
-