public final class ApplicationManifestUtils extends Object
ApplicationManifest
s. Includes the functionality to transform to and from standard CLI YAML files.Modifier and Type | Method and Description |
---|---|
static List<ApplicationManifest> |
read(Path path)
Reads a YAML manifest file (defined by the CLI) from a
Path and converts it into a collection of ApplicationManifest s. |
static void |
write(OutputStream out,
ApplicationManifest... applicationManifests)
Write
ApplicationManifest s to an OutputStream |
static void |
write(OutputStream out,
List<ApplicationManifest> applicationManifests)
Write
ApplicationManifest s to an OutputStream |
static void |
write(Path path,
ApplicationManifest... applicationManifests)
Write
ApplicationManifest s to a Path |
static void |
write(Path path,
List<ApplicationManifest> applicationManifests)
Write
ApplicationManifest s to a Path |
public static List<ApplicationManifest> read(Path path)
Path
and converts it into a collection of ApplicationManifest
s. Note that all resolution (both inheritance and common) is performed during read.path
- the path to read frompublic static void write(Path path, ApplicationManifest... applicationManifests)
ApplicationManifest
s to a Path
path
- the path to write toapplicationManifests
- the manifests to writepublic static void write(Path path, List<ApplicationManifest> applicationManifests)
ApplicationManifest
s to a Path
path
- the path to write toapplicationManifests
- the manifests to writepublic static void write(OutputStream out, ApplicationManifest... applicationManifests)
ApplicationManifest
s to an OutputStream
out
- the OutputStream
to write toapplicationManifests
- the manifests to writepublic static void write(OutputStream out, List<ApplicationManifest> applicationManifests)
ApplicationManifest
s to an OutputStream
out
- the OutputStream
to write toapplicationManifests
- the manifests to writeCopyright © 2017 Pivotal Software, Inc.. All rights reserved.