org.apache.wicket.core.util.objects.checker
Class OrphanComponentChecker

java.lang.Object
  extended by org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
      extended by org.apache.wicket.core.util.objects.checker.OrphanComponentChecker
All Implemented Interfaces:
IObjectChecker

public class OrphanComponentChecker
extends AbstractObjectChecker

A checker that doesn't allow the serialization of components which are not a page and have no parent component.

Note: The Wizard component from wicket-extensions use such kind of orphaned components and will fail this check unless the step classes are specified as exclusions.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.wicket.core.util.objects.checker.IObjectChecker
IObjectChecker.Result
 
Constructor Summary
OrphanComponentChecker()
          Constructor.
OrphanComponentChecker(List<Class<?>> exclusions)
          Constructor.
 
Method Summary
 IObjectChecker.Result doCheck(Object object)
          The implementations should make the specific check on the object.
 
Methods inherited from class org.apache.wicket.core.util.objects.checker.AbstractObjectChecker
check, getExclusions
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrphanComponentChecker

public OrphanComponentChecker()
Constructor. Checks all passed objects.


OrphanComponentChecker

public OrphanComponentChecker(List<Class<?>> exclusions)
Constructor. Checks objects which types are not excluded.

Parameters:
exclusions - a list of types which should not be checked
Method Detail

doCheck

public IObjectChecker.Result doCheck(Object object)
Description copied from class: AbstractObjectChecker
The implementations should make the specific check on the object.

Overrides:
doCheck in class AbstractObjectChecker
Parameters:
object - the object to check
Returns:
the result of the specific check


Copyright © 2006-2013 Apache Software Foundation. All Rights Reserved.