org.springframework.data.gemfire.support
Class JSONRegionAdvice

java.lang.Object
  extended by org.springframework.data.gemfire.support.JSONRegionAdvice

public class JSONRegionAdvice
extends Object


Constructor Summary
JSONRegionAdvice()
           
 
Method Summary
 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<com.gemstone.gemfire.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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JSONRegionAdvice

public JSONRegionAdvice()
Method Detail

setIncludedRegionNames

public void setIncludedRegionNames(List<String> regionNames)
Sets names of regions to be included for JSON conversion. By default, all regions will be included

Parameters:
regions - a List of region names to include

setIncludedRegions

public void setIncludedRegions(List<com.gemstone.gemfire.cache.Region<?,?>> regions)
Sets regions to be included for JSON conversion. By default, all regions will be included

Parameters:
regions - a List of region names to include

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

setPrettyPrint

public void setPrettyPrint(boolean prettyPrint)
Flag to print JSON Strings with proper indentation, etc.

Parameters:
prettyPrint - false be default

put

public Object put(org.aspectj.lang.ProceedingJoinPoint pjp)

putAll

public Object putAll(org.aspectj.lang.ProceedingJoinPoint pjp)

get

public Object get(org.aspectj.lang.ProceedingJoinPoint pjp)

getAll

public Map<Object,Object> getAll(org.aspectj.lang.ProceedingJoinPoint pjp)

values

public Collection<Object> values(org.aspectj.lang.ProceedingJoinPoint pjp)

templateQuery

public Object templateQuery(org.aspectj.lang.ProceedingJoinPoint pjp)