Class JSONRegionAdvice

java.lang.Object
org.springframework.data.gemfire.serialization.json.JSONRegionAdvice

public class JSONRegionAdvice extends Object
Spring/AspectJ AOP Aspect adapting a Region to handle JSON data.
See Also:
  • Region
  • JSONFormatter
  • PdxInstance
  • Aspect
  • Around
  • 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

      public void setIncludedRegions(List<org.apache.geode.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
    • 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:
      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

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

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

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

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

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

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