Interface ArchiveDescriptor
public interface ArchiveDescriptor
Models a logical archive, which might be
- a jar file
- a zip file
- an exploded directory
- etc
Used mainly for scanning purposes via visitClassEntries(Consumer)
and locating "well known" resources via findEntry(String)
-
Method Summary
Modifier and TypeMethodDescriptionResolve the given path relative to this archive.getUrl()The URL which is the base of this archive.resolveJarFileReference(String jarFileReference) Resolve a named archive relative tothisarchive.voidvisitClassEntries(Consumer<ArchiveEntry> entryConsumer) Visit each entry in the archive which represents a class.
-
Method Details
-
getUrl
URL getUrl()The URL which is the base of this archive. -
visitClassEntries
Visit each entry in the archive which represents a class. -
findEntry
Resolve the given path relative to this archive.- Implementation Note:
- Typically used to find
META-INF/persistence.xmlandMETA-INF/orm.xmlfiles.
-
resolveJarFileReference
Resolve a named archive relative tothisarchive. Generally the given name comes from theMETA-INF/persistence.xmlwithin this archive using<jar-file/>.- Parameters:
jarFileReference- The name given inpersistence.xmlvia<jar-file/>
-