clear

open fun clear()(source)

Clears all resources associated with this ComponentModel and marks it as cleared.

A cleared ComponentModel should no longer be used, and any newly associated resources will be immediately closed.

Clearing Sequence:

  1. Close resources added with a key via addCloseable.

  2. Close resources added via constructor.

  3. Close resources added without a key via addCloseable.

  4. Invoke the onCleared callback.