org.apache.wicket.core.util.io
Class SerializableChecker.ObjectSerializationChecker
java.lang.Object
org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
org.apache.wicket.core.util.io.SerializableChecker.ObjectSerializationChecker
- All Implemented Interfaces:
- IObjectChecker
- Enclosing class:
- SerializableChecker
public static class SerializableChecker.ObjectSerializationChecker
- extends AbstractObjectChecker
An implementation of IObjectChecker that checks whether the object
implements Serializable
interface
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SerializableChecker.ObjectSerializationChecker
public SerializableChecker.ObjectSerializationChecker()
- A constructor to use when the checker is used before a previous attempt to
serialize the object.
SerializableChecker.ObjectSerializationChecker
public SerializableChecker.ObjectSerializationChecker(NotSerializableException cause)
- A constructor to use when there was a previous attempt to serialize the
object and it failed with the
cause
.
- Parameters:
cause
- the cause of the serialization failure in a previous attempt.
check
public IObjectChecker.Result check(Object object)
- Makes the check for all objects. Exclusions by type is not supported.
- Specified by:
check
in interface IObjectChecker
- Overrides:
check
in class AbstractObjectChecker
- Parameters:
object
- the object to check
- Returns:
- the
Result#SUCCESS
if the object can be serialized.
Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.