J F W

making web application programming easier is possible

HOW TO : CORE

update the data of a class

Updating a class under JFW means updating the configuration data of the class. Don't misunderstand that with dynamically update/reload the code of the class using a non standard class loader.

The update mechanism of JFW is based at the Observer-Observable pattern. The observable object is the unique instance of the class UpdateObservable. For implementing this mechanism, you have to write:

The this is the observer instance.

All the actions that directly or indirectly extend the JFWAction implement the update mechanism. The method myInit will be executed when the update signal is sent from the administration console.

For the classes using the caching system the method initialize will be executed during update.