Module org.apache.wicket.core
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
An implementation of IObjectChecker that checks whether the object
implements
Serializable
interface
Note: 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
ConstructorDescriptionA constructor to use when the checker is used before a previous attempt to serialize the object.A constructor to use when there was a previous attempt to serialize the object and it failed with thecause
. -
Method Summary
Modifier and TypeMethodDescriptionMakes the check for all objects.Methods inherited from class org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
doCheck, getExclusions
-
Constructor Details
-
ObjectSerializationChecker
public ObjectSerializationChecker()A constructor to use when the checker is used before a previous attempt to serialize the object. -
ObjectSerializationChecker
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 Details
-
check
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.
-