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

    • Constructor Detail

      • OrphanComponentChecker

        public OrphanComponentChecker()
        Constructor. Checks all passed objects.
      • OrphanComponentChecker

        public OrphanComponentChecker​(java.util.List<java.lang.Class<?>> exclusions)
        Constructor. Checks objects which types are not excluded.
        Parameters:
        exclusions - a list of types which should not be checked