Stephen McConnell wrote:


With Merlin, it uses the Manifest (another Java standard) and marks certain
classes and interfaces as an Avalon Type or an Avalon Service.

This is incorrect. Merlin usage of manifest is 100% standard. Manifest

Right. I was not addressing standards issues.


entries describe jar file structural dependencies that the jar file containing the manfest has. This is referred to the optional extensions specification.
For trpe and service entries Merlin colocates <classname>.xtype and classname.xservice resources in a jar file. When a list of jar files if presented for loading (the result of the resolution of a set of target jar files + recusive optional jar dependency resolution, Merloin scanns each jar file for type and service entries, building a type and service repository in the process.

I thought that Merlin had entries like this:


Name: com.mycompany.MyService
Service: True

Name: com.mycompany.impl.MyComponent
Type: True

Or something similar.  That is what I was referring to.  The attributes/
meta-info wasn't part of the packaging discussion.


Both approaches work. The Merlin approach requires you to explicitly parse the
Manifest (which intails looking at the JarFile, getting its Manifest, and using
the Manifest object to parse the contents). Fortress allows you to work with a
set of files that are no more than a list. You to simply use the getResource()
or getResources() methods to get the lists.

This mixes up what is going on. Merlin mani9fest usaage to get establish the physical depndencies that one jar file has on othe jar files, and from that, recusive assemsment of what depednecies thosr new hjars have. There is nothing equivalent to this in Fortress.

Typing with fat fingers? I think the content of what we were talking about was getting the list of components/services inside a JAR. Inter-JAR dependencies were not the subject here.


Both of these approaches try to comply with a standard that is already present
in Java land.

Which standards are you referring to?



Merlin: Manifest entries Fortress: JAR Services entries

--

"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]



Reply via email to