public class ObjectSerializationChecker extends AbstractObjectChecker
Serializable
interface
Note: There is a system property -Dsun.io.serialization.extendedDebugInfo=true that could give even more debug information.
IObjectChecker.Result
Constructor and Description |
---|
ObjectSerializationChecker()
A constructor to use when the checker is used before a previous attempt to
serialize the object.
|
ObjectSerializationChecker(NotSerializableException cause)
A constructor to use when there was a previous attempt to serialize the
object and it failed with the
cause . |
Modifier and Type | Method and Description |
---|---|
IObjectChecker.Result |
check(Object object)
Makes the check for all objects.
|
doCheck, getExclusions
public ObjectSerializationChecker()
public ObjectSerializationChecker(NotSerializableException cause)
cause
.cause
- the cause of the serialization failure in a previous attempt.public IObjectChecker.Result check(Object object)
check
in interface IObjectChecker
check
in class AbstractObjectChecker
object
- the object to checkIObjectChecker.Result.SUCCESS
if the object can be serialized.Copyright © 2006–2022 Apache Software Foundation. All rights reserved.