public interface ApplicationArchive extends Closeable
An application archive is an archive that provides components to the application. As a result it will be indexed via jandex, and any deployment descriptors will be made available to the application.
| Modifier and Type | Method and Description |
|---|---|
Path |
getArchiveLocation()
If this archive is a jar file it will return the path to the jar file on the file system,
otherwise it will return the directory that this corresponds to.
|
Path |
getArchiveRoot()
Returns a path representing the archive root.
|
default Path |
getChildPath(String path)
Convenience method, returns the child path if it exists, otherwise null.
|
org.jboss.jandex.IndexView |
getIndex() |
boolean |
isJarArchive() |
org.jboss.jandex.IndexView getIndex()
Path getArchiveRoot()
com.sun.nio.zipfs.ZipFileSystemboolean isJarArchive()
true if this archive is a jarPath getArchiveLocation()
Copyright © 2020 JBoss by Red Hat. All rights reserved.