Serializable MappingResult(s)

Issue: SWF-1715
This commit is contained in:
Rossen Stoyanchev
2017-12-20 13:54:54 -05:00
parent 3a165ea879
commit eade36e741
3 changed files with 24 additions and 5 deletions

View File

@@ -1,12 +1,29 @@
/*
* Copyright 2004-2017 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.springframework.binding.mapping; package org.springframework.binding.mapping;
import java.io.Serializable;
/** /**
* A single data mapping result. Each result has a unique {@link #getCode() code}, and provides context about the result * A single data mapping result. Each result has a unique {@link #getCode() code}, and provides context about the result
* of a single data mapping operation. * of a single data mapping operation.
* *
* @author Keith Donald * @author Keith Donald
*/ */
public interface MappingResult { public interface MappingResult extends Serializable {
/** /**
* The mapping that executed for which this result pertains to. * The mapping that executed for which this result pertains to.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2004-2012 the original author or authors. * Copyright 2004-2017 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -15,6 +15,7 @@
*/ */
package org.springframework.binding.mapping; package org.springframework.binding.mapping;
import java.io.Serializable;
import java.util.List; import java.util.List;
/** /**
@@ -22,7 +23,7 @@ import java.util.List;
* *
* @author Keith Donald * @author Keith Donald
*/ */
public interface MappingResults { public interface MappingResults extends Serializable {
/** /**
* The source object that was mapped from. * The source object that was mapped from.

View File

@@ -1,5 +1,5 @@
/* /*
* Copyright 2004-2008 the original author or authors. * Copyright 2004-2012 the original author or authors.
* *
* Licensed under the Apache License, Version 2.0 (the "License"); * Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License. * you may not use this file except in compliance with the License.
@@ -26,7 +26,8 @@ import org.springframework.core.style.ToStringCreator;
*/ */
public abstract class AbstractMappingResult implements MappingResult { public abstract class AbstractMappingResult implements MappingResult {
private Mapping mapping; private transient Mapping mapping;
/** /**
* Creates a new mapping result. * Creates a new mapping result.