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 the state of multiple components.
To be cleaned state components must implement ICleanable interface. If they don’t the call to this method has no effect.
static
clear(context: Optional[IContext], components: List[Any])
- context: IContext - (optional) a context to trace execution through a call chain.
- components: List[Any] - the list of components that are to be cleaned.
clear_one
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.
static
clearOne(context: Optional[IContext], component: Any)
- context: IContext - (optional) a context to trace execution through a call chain.
- component: Any - the component that is to be cleaned.