Class AbstractObjectChecker
- java.lang.Object
-
- org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
-
- All Implemented Interfaces:
IObjectChecker
- Direct Known Subclasses:
DifferentPageChecker
,NotDetachedModelChecker
,ObjectSerializationChecker
,OrphanComponentChecker
,SessionChecker
public abstract class AbstractObjectChecker extends Object implements IObjectChecker
A base class for IObjectChecker implementations which handles the logic for checking type exclusions.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.apache.wicket.core.util.objects.checker.IObjectChecker
IObjectChecker.Result
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractObjectChecker()
protected
AbstractObjectChecker(List<Class<?>> exclusions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IObjectChecker.Result
check(Object object)
Checks an object that it meets some requirements before serializing itprotected IObjectChecker.Result
doCheck(Object object)
The implementations should make the specific check on the object.List<Class<?>>
getExclusions()
-
-
-
Constructor Detail
-
AbstractObjectChecker
protected AbstractObjectChecker()
-
AbstractObjectChecker
protected AbstractObjectChecker(List<Class<?>> exclusions)
-
-
Method Detail
-
check
public IObjectChecker.Result check(Object object)
Description copied from interface:IObjectChecker
Checks an object that it meets some requirements before serializing it- Specified by:
check
in interfaceIObjectChecker
- Parameters:
object
- the object to check- Returns:
- a Result object describing whether the check is successful or not
-
doCheck
protected IObjectChecker.Result doCheck(Object object)
The implementations should make the specific check on the object.- Parameters:
object
- the object to check- Returns:
- the
result
of the specific check
-
getExclusions
public List<Class<?>> getExclusions()
- Specified by:
getExclusions
in interfaceIObjectChecker
- Returns:
- A list of types which should not be checked by this checker
-
-