commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James Carman <>
Subject Re: [lang] package/manifest utils WAS Re: Version classes
Date Wed, 15 Sep 2010 14:48:58 GMT
On Wed, Sep 15, 2010 at 10:40 AM, Matt Benson <> wrote:
> Agreed--I didn't even realize this info was in Package.  On the idea of manifest reading,
though, I still have some code adapted from Ant's manifest code that does provide manifest
access, if we want to polish it into a ManifestUtils class...

I was thinking the same thing.  Or, we could make it part of the
ClassUtils.  It would just return the Manifest object for a class or,
we could provide a wrapper class, ManifestWrapper, that has shortcut
methods for finding the stuff that most folks are interested in:

public static ManifestWrapper getManifest(Class representative);

This way, we would have to go find the Manifest multiple times if the
user asked for multiple attributes in succession.  They would just get
the ManifestWrapper once and query it.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message