public class CuratedApplicationCreator extends Object implements AutoCloseable
| Modifier and Type | Class and Description |
|---|---|
static class |
CuratedApplicationCreator.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CuratedApplicationCreator.Builder |
builder()
Returns an instance of a builder that can be used to initialize an application creator.
|
void |
close() |
Path |
createWorkDir(String... names)
Creates a directory from a path relative to the creator's work directory.
|
AppArtifact |
getAppArtifact()
User application JAR file
|
AppModelResolver |
getArtifactResolver()
Artifact resolver which can be used to resolve application dependencies.
|
String |
getBaseName() |
DependenciesOrigin |
getDepsOrigin() |
Path |
getLocalRepo() |
VersionUpdate |
getUpdate() |
VersionUpdateNumber |
getUpdateNumber() |
Path |
getWorkDir()
Work directory used by the phases to store various data.
|
Path |
getWorkPath(String... names)
Creates a path object from path relative to the creator's work directory.
|
<T> T |
runTask(CuratedTask<T> task) |
public static CuratedApplicationCreator.Builder builder()
public Path getWorkDir()
public AppModelResolver getArtifactResolver()
public AppArtifact getAppArtifact() throws AppCreatorException
AppCreatorExceptionpublic DependenciesOrigin getDepsOrigin()
public VersionUpdate getUpdate()
public VersionUpdateNumber getUpdateNumber()
public Path getLocalRepo()
public String getBaseName()
public Path createWorkDir(String... names) throws AppCreatorException
names - represents a path relative to the creator's work directoryAppCreatorException - in case the directory could not be createdpublic <T> T runTask(CuratedTask<T> task) throws AppCreatorException
AppCreatorExceptionpublic Path getWorkPath(String... names)
names - represents a path relative to the creator's work directorypublic void close()
close in interface AutoCloseableCopyright © 2019 JBoss by Red Hat. All rights reserved.