Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

An instance of an immediate component type is instantiated as soon it becomes valid. It means that, when the instance becomes valid, the constructor of the implementation class is called. This can replace the validate callback. However, it stills a difference between the immediate and the validate callback. The constructor is call only once time. The validate callback is re-called each time the instance becomes valid.

However as there is no 'destructor' in Java, the invalidate callback is necessary if some actions are needed when stopping.

...