org.apache.wicket.core.util.io
Class SerializableChecker.ObjectSerializationChecker

java.lang.Object
  extended by org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
      extended by 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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.core.util.objects.checker.IObjectChecker
IObjectChecker.Result
 
Constructor Summary
SerializableChecker.ObjectSerializationChecker()
          A constructor to use when the checker is used before a previous attempt to serialize the object.
SerializableChecker.ObjectSerializationChecker(NotSerializableException cause)
          A constructor to use when there was a previous attempt to serialize the object and it failed with the cause.
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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.
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 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.