Package io.quarkus.deployment
Class ApplicationArchiveImpl
- java.lang.Object
-
- io.quarkus.builder.item.BuildItem
-
- io.quarkus.builder.item.MultiBuildItem
-
- io.quarkus.deployment.ApplicationArchiveImpl
-
- All Implemented Interfaces:
ApplicationArchive
public final class ApplicationArchiveImpl extends MultiBuildItem implements ApplicationArchive
-
-
Constructor Summary
Constructors Constructor Description ApplicationArchiveImpl(org.jboss.jandex.IndexView indexView, io.quarkus.paths.OpenPathTree openTree, io.quarkus.maven.dependency.ArtifactKey artifactKey)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaccept(Consumer<io.quarkus.paths.OpenPathTree> func)Accepts a consumer for the content tree of the archive.<T> Tapply(Function<io.quarkus.paths.OpenPathTree,T> func)Applies a function to the content tree of the archive.PathgetArchiveLocation()Deprecated.io.quarkus.bootstrap.model.AppArtifactKeygetArtifactKey()Deprecated.org.jboss.jandex.IndexViewgetIndex()io.quarkus.maven.dependency.ArtifactKeygetKey()io.quarkus.bootstrap.model.PathsCollectiongetPaths()Deprecated.io.quarkus.paths.PathCollectiongetResolvedPaths()io.quarkus.paths.PathCollectiongetRootDirectories()Returns paths representing the archive root directories.io.quarkus.bootstrap.model.PathsCollectiongetRootDirs()Deprecated.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.quarkus.deployment.ApplicationArchive
getChildPath
-
-
-
-
Method Detail
-
getIndex
public org.jboss.jandex.IndexView getIndex()
- Specified by:
getIndexin interfaceApplicationArchive- Returns:
- The index of this application Archive
-
getArchiveLocation
@Deprecated public Path getArchiveLocation()
Deprecated.Description copied from interface:ApplicationArchiveIf 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.- Specified by:
getArchiveLocationin interfaceApplicationArchive
-
getRootDirs
@Deprecated public io.quarkus.bootstrap.model.PathsCollection getRootDirs()
Deprecated.- Specified by:
getRootDirsin interfaceApplicationArchive- Returns:
- The archive root directories.
-
getRootDirectories
public io.quarkus.paths.PathCollection getRootDirectories()
Description copied from interface:ApplicationArchiveReturns paths representing the archive root directories. Note that every path in this collection is guaranteed to be a directory. If the actual application archive appears to be a JAR, this collection will include a path to the root of the mountedFileSystemcreated from the JAR.- Specified by:
getRootDirectoriesin interfaceApplicationArchive- Returns:
- The archive root directories.
-
getPaths
@Deprecated public io.quarkus.bootstrap.model.PathsCollection getPaths()
Deprecated.- Specified by:
getPathsin interfaceApplicationArchive- Returns:
- The paths representing the application root paths.
-
getResolvedPaths
public io.quarkus.paths.PathCollection getResolvedPaths()
- Specified by:
getResolvedPathsin interfaceApplicationArchive- Returns:
- The paths representing the application root paths.
-
getArtifactKey
@Deprecated public io.quarkus.bootstrap.model.AppArtifactKey getArtifactKey()
Deprecated.- Specified by:
getArtifactKeyin interfaceApplicationArchive- Returns:
- the artifact key or null if not available
-
getKey
public io.quarkus.maven.dependency.ArtifactKey getKey()
- Specified by:
getKeyin interfaceApplicationArchive- Returns:
- the artifact key or null if not available
-
apply
public <T> T apply(Function<io.quarkus.paths.OpenPathTree,T> func)
Description copied from interface:ApplicationArchiveApplies a function to the content tree of the archive.- Specified by:
applyin interfaceApplicationArchive- Type Parameters:
T- result type of the function- Parameters:
func- function to apply- Returns:
- the result of the function
-
accept
public void accept(Consumer<io.quarkus.paths.OpenPathTree> func)
Description copied from interface:ApplicationArchiveAccepts a consumer for the content tree of the archive.- Specified by:
acceptin interfaceApplicationArchive- Parameters:
func- consumer
-
-