Stephen McConnell wrote:
The specification is here: http://java.sun.com/j2se/1.4.2/docs/guide/extensions/versioning.html
Thanks for the reading material ;P
I'll probably have some more questions later.
Ok. Now that I have looked over the stuff (JavaDocs weren't that helpful, sorry), I do have some questions. Most of this is just spitting things back in my own words to make sure I've got it.
To make sure I understand it properly, Merlin expects to find some values to authoritatively identify a JAR:
Extension-Name: avalon-framework Specification-Vendor: Apache Software Foundation Specification-Version: 1.0 Implementation-Vender-Id: org.apache Implementation-Vendor: Apache Software Foundation Implmentation-Version: 1.0
This is as a result of respecting the Java versioning spec listed above.
Quick Question: if we separate API and Impl into separate JARS do the specification and implementation information get split up accordingly (sharing the same extension name)?
If the JAR has the "Extension-List" attribute (with a space separated list), then we identify a set of specifications we need to link to. IOW, it is how we identify JAR dependencies.
Extension-List: foo foo-Extension-Name: far-fetched foo-Specification-Version: 1.0 foo-Implementation-Version: 1.0 foo-Implementation-Vendor-Id: org.apache foo-Implementation-URL: http://www.apache.org/dist/avalon/foo/jars/foo.jar
As we can see by the above set of attributes (notice the "foo" prefix matches the entry in the extension list), we can find a remote JAR with a particular URL. The version info is used to determine the minimum acceptable version. The Implementation-Vendor-Id is used ONLY if we want to limit the acceptable candidate to something specified by the vendor ID.
There is a specific set of rules for matching and determining if an update is necessary. I assume that these are all followed Ok. Lastly, do we respect the sandboxing requirements of downloading remote code?
--
"They that give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety." - Benjamin Franklin
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]