Beispiel #1
0
 public Object interceptPut(String mapName, Object oldValue, Object newValue) {
   List<MapInterceptor> interceptors = getMapContainer(mapName).getInterceptors();
   Object result = null;
   if (!interceptors.isEmpty()) {
     result = toObject(newValue);
     oldValue = toObject(oldValue);
     for (MapInterceptor interceptor : interceptors) {
       Object temp = interceptor.interceptPut(oldValue, result);
       if (temp != null) {
         result = temp;
       }
     }
   }
   return result == null ? newValue : result;
 }