@Beta public interface ArtifactManager
Modifier and Type | Method and Description |
---|---|
CloseableClassLoader |
createClassLoader(ArtifactInfo artifactInfo,
ClassLoader parentClassLoader)
Create a class loader using the artifact represented by artifactInfo with parent as
parentClassloader Call to this method might take a long time based on the size of the artifact.
|
CloseableClassLoader |
createClassLoader(String namespace,
ArtifactInfo artifactInfo,
ClassLoader parentClassLoader)
Create a class loader using the artifact represented by artifactInfo with parent as
parentClassloader Call to this method might take a long time based on the size of the artifact.
|
List<ArtifactInfo> |
listArtifacts()
Get the list of artifacts in the repository in the current and system namespace
|
List<ArtifactInfo> |
listArtifacts(String namespace)
Get the list of artifacts in the repository in the specified namespace and system namespace
|
List<ArtifactInfo> listArtifacts() throws IOException, AccessException
IOException
- when there is an error retrieving artifactsAccessException
List<ArtifactInfo> listArtifacts(String namespace) throws IOException, AccessException
namespace
- the namespace to list artifacts forIOException
- when there is an error retrieving artifactsAccessException
CloseableClassLoader createClassLoader(ArtifactInfo artifactInfo, @Nullable ClassLoader parentClassLoader) throws IOException, AccessException
artifactInfo
- artifact infoparentClassLoader
- parent class loader, if null bootstrap classLoader shall be used
as parentIOException
- if there were any exception while creating the class loader or if the
artifact is not foundAccessException
CloseableClassLoader createClassLoader(String namespace, ArtifactInfo artifactInfo, @Nullable ClassLoader parentClassLoader) throws IOException, AccessException
namespace
- the namespace of the specified artifact. This should be the same namespace
that was used when calling listArtifacts(String)
artifactInfo
- artifact infoparentClassLoader
- parent class loader, if null bootstrap classLoader shall be used
as parentIOException
- if there were any exception while creating the class loader or if the
artifact is not foundAccessException
Copyright © 2024 Cask Data, Inc. Licensed under the Apache License, Version 2.0.