public final class ApplicationManifestUtils extends Object
ApplicationManifests. 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 ApplicationManifests. |
static void |
write(OutputStream out,
ApplicationManifest... applicationManifests)
Write
ApplicationManifests to an OutputStream |
static void |
write(OutputStream out,
List<ApplicationManifest> applicationManifests)
Write
ApplicationManifests to an OutputStream |
static void |
write(Path path,
ApplicationManifest... applicationManifests)
Write
ApplicationManifests to a Path |
static void |
write(Path path,
List<ApplicationManifest> applicationManifests)
Write
ApplicationManifests to a Path |
public static List<ApplicationManifest> read(Path path)
Path and converts it into a collection of ApplicationManifests. 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)
ApplicationManifests to a Pathpath - the path to write toapplicationManifests - the manifests to writepublic static void write(Path path, List<ApplicationManifest> applicationManifests)
ApplicationManifests to a Pathpath - the path to write toapplicationManifests - the manifests to writepublic static void write(OutputStream out, ApplicationManifest... applicationManifests)
ApplicationManifests to an OutputStreamout - the OutputStream to write toapplicationManifests - the manifests to writepublic static void write(OutputStream out, List<ApplicationManifest> applicationManifests)
ApplicationManifests to an OutputStreamout - the OutputStream to write toapplicationManifests - the manifests to writeCopyright © 2017 Pivotal Software, Inc.. All rights reserved.