public class JSONRegionAdvice extends Object
Modifier and Type | Field and Description |
---|---|
protected org.apache.commons.logging.Log |
log |
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<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<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 put(org.aspectj.lang.ProceedingJoinPoint pjp)
public Object putAll(org.aspectj.lang.ProceedingJoinPoint pjp)
public Object get(org.aspectj.lang.ProceedingJoinPoint pjp)
public Collection<Object> values(org.aspectj.lang.ProceedingJoinPoint pjp)
public Object templateQuery(org.aspectj.lang.ProceedingJoinPoint pjp)