Cleaner

Helper class that allows you to clear the state of components.

Description

The Cleaner class allows you to clear the state of components.

Static methods

clear

Clears state of multiple components.

To be cleaned, state components must implement the ICleanable interface. If they don’t, the call to this method has no effect.

public static void clear(IContext context, Iterable components) throws ApplicationException

  • context: IContext - (optional) execution context to trace execution through call chain.
  • components: Iterable - list of components that are to be cleaned.

    clearOne

    Clears the state of a specific component. To be cleaned, state components must implement ICleanable interface. If they don’t, the call to this method has no effect.

    public static void clearOne(IContext context, Object component) throws ApplicationException

    • context: IContext - (optional) execution context to trace execution through call chain.
    • component: Object - component that is to be cleaned.

    See also