Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Customizing Manifest

807569Aug 27 2006 — edited Aug 27 2006
I have a jar that will be dynamically loaded by an application. My application needs to search the jar for classes with a certain property that will be recorded in its BeanInfo. To avoid searching every single class, I'd like to create some sort of index that my application can scan to obtain the list of relevant classes.

It struck me that the manifest file might be a good place to list this meta info. However, I'm not sure how well this would be looked upon from a Java standards point of view. I'm also not sure if I should add my information to meta-inf/Manifest.mf (similar to a java bean marker), a secondary text file in meta-inf/, or somewhere else entirely.

If I do put it in meta-inf/Manifest.mf, do I need to worry about conflicts with the manifest of another jar if my application loads two jars, both of which contain my 'special' classes?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 24 2006
Added on Aug 27 2006
1 comment
140 views