コード例 #1
0
  /** {@inheritDoc} */
  @Nullable
  @Override
  protected Object replaceObject(Object obj) throws IOException {
    if (obj == null || GridMarshallerExclusions.isExcluded(obj.getClass())) return null;

    if (requireSer || obj instanceof Serializable) return obj;

    return new GridOptimizedWrapper(obj);
  }
コード例 #2
0
 /** {@inheritDoc} */
 @Override
 public boolean canConvert(Class cls) {
   return GridMarshallerExclusions.isExcluded(cls);
 }