[Openjnlp-devel] Major refactoring committed
Brought to you by:
kherr
From: Kevin H. <ke...@na...> - 2002-01-14 07:09:12
|
The OpenJNLP code has just undergone major refactoring to provide conceptual clarity and lay the groundwork for future functionality. The biggest and most confusing refactoring is in org.nanode.launcher. The org.nanode.launcher.Reference class has been completely scrapped, rolling all its functionality into the org.nanode.launcher.Descriptor class. A JNLP file gets parsed into a Descriptor, which is what the Launcher now acts on. This is more sensible architecturally than the former arrangement. Descriptor gets extended for specific types of descriptors, such as ApplicationDescriptor (which no longer has anything to do with applets). Confusingly, however, there is a new org.nanode.launcher.Reference class that is a reference to a resource. It encapsulates a URL and version-id info. Moving to the Reference over straight URLs will allow version-based resource handling. All of the OpenJNLP source has been updated to reflect these changes, so everything should function as before. Some other improvements have been made, such as correctly supporting locale, arch and os restrictions on information and resources in the JNLP files. Hopefully this major refactoring won't cause too much pain to anyone. It needed to be done to provide a more understandable and sensible codebase moving forward. |