org.apache.wicket.core.util.objects.checker
Class NotDetachedModelChecker
java.lang.Object
org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
org.apache.wicket.core.util.objects.checker.NotDetachedModelChecker
- All Implemented Interfaces:
- IObjectChecker
public class NotDetachedModelChecker
- extends AbstractObjectChecker
An implementation of IObjectChecker
that returns a failure
result when the checked object is a LoadableDetachableModel
and it is model object is still attached.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NotDetachedModelChecker
public NotDetachedModelChecker()
- Constructor.
Checks all passed objects.
NotDetachedModelChecker
public NotDetachedModelChecker(List<Class<?>> exclusions)
- Constructor.
Checks objects which types are not excluded.
- Parameters:
exclusions
- a list of types which should not be checked
doCheck
public IObjectChecker.Result doCheck(Object obj)
- Description copied from class:
AbstractObjectChecker
- The implementations should make the specific check on the object.
- Overrides:
doCheck
in class AbstractObjectChecker
- Parameters:
obj
- the object to check
- Returns:
- the
result
of the specific check
Copyright © 2006–2016 Apache Software Foundation. All rights reserved.