Package org.jboss.cache.marshall

Examples of org.jboss.cache.marshall.MarshalledValueMap


   private static Map copy(Map data, boolean useMarshalledValueMaps)
   {
      if (data == null) return null;
      if (data.isEmpty()) return Collections.emptyMap();
      if (safe(data)) return useMarshalledValueMaps ? new MarshalledValueMap(data) : data;
      Map defensivelyCopiedData = Immutables.immutableMapCopy(data);
      return useMarshalledValueMaps ? new MarshalledValueMap(defensivelyCopiedData) : defensivelyCopiedData;
   }
View Full Code Here


   private static Map copy(Map data, boolean useMarshalledValueMaps)
   {
      if (data == null) return null;
      if (data.isEmpty()) return Collections.emptyMap();
      if (safe(data)) return useMarshalledValueMaps ? new MarshalledValueMap(data) : data;
      Map defensivelyCopiedData = Immutables.immutableMapCopy(data);
      return useMarshalledValueMaps ? new MarshalledValueMap(defensivelyCopiedData) : defensivelyCopiedData;
   }
View Full Code Here

      Object retVal = invokeNextInterceptor(ctx, command);
      if (retVal instanceof Map)
      {
         if (trace) log.trace("Return value is a Map and we're retrieving data.  Wrapping as a MarshalledValueMap.");
         Map retValMap = (Map) retVal;
         if (!retValMap.isEmpty()) retVal = new MarshalledValueMap(retValMap);
      }
      return retVal;
   }
View Full Code Here

   private static Map copy(Map data, boolean useMarshalledValueMaps)
   {
      if (data == null) return null;
      if (data.isEmpty()) return Collections.emptyMap();
      if (safe(data)) return useMarshalledValueMaps ? new MarshalledValueMap(data) : data;
      Map defensivelyCopiedData = Immutables.immutableMapCopy(data);
      return useMarshalledValueMaps ? new MarshalledValueMap(defensivelyCopiedData) : defensivelyCopiedData;
   }
View Full Code Here

      Object retVal = invokeNextInterceptor(ctx, command);
      if (retVal instanceof Map)
      {
         if (trace) log.trace("Return value is a Map and we're retrieving data.  Wrapping as a MarshalledValueMap.");
         Map retValMap = (Map) retVal;
         if (!ctx.isBypassUnmarshalling() && !retValMap.isEmpty()) retVal = new MarshalledValueMap(retValMap);
      }
      return retVal;
   }
View Full Code Here

   private static Map copy(Map data, boolean useMarshalledValueMaps)
   {
      if (data == null) return null;
      if (data.isEmpty()) return Collections.emptyMap();
      if (safe(data)) return useMarshalledValueMaps ? new MarshalledValueMap(data) : data;
      Map defensivelyCopiedData = new MapCopy(data);
      return useMarshalledValueMaps ? new MarshalledValueMap(defensivelyCopiedData) : defensivelyCopiedData;
   }
View Full Code Here

   private static Map copy(Map data, boolean useMarshalledValueMaps)
   {
      if (data == null) return null;
      if (data.isEmpty()) return Collections.emptyMap();
      if (safe(data)) return useMarshalledValueMaps ? new MarshalledValueMap(data) : data;
      Map defensivelyCopiedData = Immutables.immutableMapCopy(data);
      return useMarshalledValueMaps ? new MarshalledValueMap(defensivelyCopiedData) : defensivelyCopiedData;
   }
View Full Code Here

   private static Map copy(Map data)
   {
      if (data == null) return null;
      if (data.isEmpty()) return Collections.emptyMap();
      if (safe(data)) return new MarshalledValueMap(data);
      return new MarshalledValueMap(new MapCopy(data));
   }
View Full Code Here

         }
         else if (retVal instanceof Map && call.getMethodId() == MethodDeclarations.getDataMapMethodLocal_id)
         {
            if (trace) log.trace("Return value is a Map and we're retrieving data.  Wrapping as a MarshalledValueMap.");
            Map retValMap = (Map) retVal;
            if (!retValMap.isEmpty()) retVal = new MarshalledValueMap(retValMap);
         }
      }

      return retVal;
   }
View Full Code Here

      Object retVal = invokeNextInterceptor(ctx, command);
      if (retVal instanceof Map)
      {
         if (trace) log.trace("Return value is a Map and we're retrieving data.  Wrapping as a MarshalledValueMap.");
         Map retValMap = (Map) retVal;
         if (!retValMap.isEmpty()) retVal = new MarshalledValueMap(retValMap);
      }
      return retVal;
   }
View Full Code Here

TOP

Related Classes of org.jboss.cache.marshall.MarshalledValueMap

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.