Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Minor formatting, grammar & spelling

...

Reloading is based on package name; the packages that are reloaded are derived from the application configuration.

If your root package is code_org.example.myapp/code_, then only classes in the following packages will be scanned for automatic reloads:

  • org.example.myapp.pages
  • org.example.myapp.components
  • org.example.myapp.mixins
  • org.example.myapp.base

File System Only

Reloading of classes and other files applies only to files that are actually on the file system, and not files obtained from JAR files. This is perfect during development, where the files in question are in your local workspace. In a deployed application, you are somewhat subject to the implementation of your servlet container or application server.

...

The solution to this problem is to introduce an interface; the component class will should implement the interface, and the service will should expect an instance of the interface, rather than a specific type.

It is important that the interface be loaded by the default class loader, it . It should not be in the pages or components package, but instead be in another package, such as services.

...