Customizing Manifest
807569Aug 27 2006 — edited Aug 27 2006I 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?