Class ObjectSerializationChecker
- java.lang.Object
-
- org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
-
- org.apache.wicket.core.util.objects.checker.ObjectSerializationChecker
-
- All Implemented Interfaces:
IObjectChecker
public class ObjectSerializationChecker extends AbstractObjectChecker
An implementation of IObjectChecker that checks whether the object implementsSerializable
interfaceNote: There is a system property -Dsun.io.serialization.extendedDebugInfo=true that could give even more debug information.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wicket.core.util.objects.checker.IObjectChecker
IObjectChecker.Result
-
-
Constructor Summary
Constructors Constructor 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 thecause
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IObjectChecker.Result
check(Object object)
Makes the check for all objects.-
Methods inherited from class org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
doCheck, getExclusions
-
-
-
-
Constructor Detail
-
ObjectSerializationChecker
public ObjectSerializationChecker()
A constructor to use when the checker is used before a previous attempt to serialize the object.
-
ObjectSerializationChecker
public ObjectSerializationChecker(NotSerializableException cause)
A constructor to use when there was a previous attempt to serialize the object and it failed with thecause
.- Parameters:
cause
- the cause of the serialization failure in a previous attempt.
-
-
Method Detail
-
check
public IObjectChecker.Result check(Object object)
Makes the check for all objects. Exclusions by type is not supported.- Specified by:
check
in interfaceIObjectChecker
- Overrides:
check
in classAbstractObjectChecker
- Parameters:
object
- the object to check- Returns:
- the
IObjectChecker.Result.SUCCESS
if the object can be serialized.
-
-