Package io.bdeploy.api.product.v1
Class ProductManifestBuilder
java.lang.Object
io.bdeploy.api.product.v1.ProductManifestBuilder
Builder to create new product manifests.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionadd(Manifest.Key application) addApplicationTemplate(Path tmplPath) addInstanceTemplate(Path tmplPath) addInstanceVariableTemplate(Path tmplPath) addParameterTemplate(Path tmplPath) static PathgetDescriptorPath(Path descriptorPath) static Manifest.KeyimportFromDescriptor(Path descriptorPath, BHive hive, DependencyFetcher fetcher, boolean parallel) voidinsert(BHive hive, Manifest.Key manifest, String productName) static ProductDescriptorreadProductDescriptor(Path impDesc) static ProductVersionDescriptorreadProductVersionDescriptor(Path impDesc, Path vDesc) setConfigTemplates(Path templates) setPluginFolder(Path plugins)
-
Field Details
-
PRODUCT_LABEL
- See Also:
-
PRODUCT_DESC
- See Also:
-
CONFIG_ENTRY
- See Also:
-
PLUGINS_ENTRY
- See Also:
-
TEMPLATES_ENTRY
- See Also:
-
APP_TEMPLATES_ENTRY
- See Also:
-
PARAM_TEMPLATES_ENTRY
- See Also:
-
VARIABLE_TEMPLATES_ENTRY
- See Also:
-
-
Constructor Details
-
ProductManifestBuilder
-
-
Method Details
-
add
-
setConfigTemplates
-
setPluginFolder
-
addLabel
-
addInstanceTemplate
-
addApplicationTemplate
-
addParameterTemplate
-
addInstanceVariableTemplate
-
insert
-
importFromDescriptor
public static Manifest.Key importFromDescriptor(Path descriptorPath, BHive hive, DependencyFetcher fetcher, boolean parallel) - Parameters:
descriptorPath- a relative or absolute path to a directory or a product-info.yaml file.hive- the target hive to import to.fetcher- aDependencyFetchercapable of assuring that external dependencies are present.parallel- whether it is allowed to spawn threads, or the import must happen on the calling thread.
-
getDescriptorPath
-
readProductVersionDescriptor
-
readProductDescriptor
-