public class JSONRegionAdvice extends Object
Region
to handle JSON data.Region
,
JSONFormatter
,
PdxInstance
,
Aspect
,
Around
Modifier and Type | Field and Description |
---|---|
protected org.slf4j.Logger |
logger |
Constructor and Description |
---|
JSONRegionAdvice() |
Modifier and Type | Method and Description |
---|---|
Object |
get(org.aspectj.lang.ProceedingJoinPoint pjp) |
Map<Object,Object> |
getAll(org.aspectj.lang.ProceedingJoinPoint pjp) |
Object |
put(org.aspectj.lang.ProceedingJoinPoint pjp) |
Object |
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.
|
Object |
templateQuery(org.aspectj.lang.ProceedingJoinPoint pjp) |
Collection<Object> |
values(org.aspectj.lang.ProceedingJoinPoint pjp) |
public void setConvertReturnedCollections(boolean convertReturnedCollections)
convertReturnedCollections
- true by defaultpublic void setIncludedRegions(List<org.apache.geode.cache.Region<?,?>> regions)
regions
- a List of region names to includepublic void setIncludedRegionNames(List<String> regionNames)
regionNames
- a List of region names to includepublic void setPrettyPrint(boolean prettyPrint)
prettyPrint
- false be defaultpublic Object get(org.aspectj.lang.ProceedingJoinPoint pjp)
public Object put(org.aspectj.lang.ProceedingJoinPoint pjp)
public Object putAll(org.aspectj.lang.ProceedingJoinPoint pjp)
public Collection<Object> values(org.aspectj.lang.ProceedingJoinPoint pjp)
public Object templateQuery(org.aspectj.lang.ProceedingJoinPoint pjp)
Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.