Class FeaturePackTemplateManager
java.lang.Object
org.wildfly.prospero.model.FeaturePackTemplateManager
Matches provisioning configurations that need to be applied if a certain feature-pack GAV is installed.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFeaturePackTemplateManager(org.wildfly.prospero.model.FeaturePackTemplateList featurePackRecipeBook) -
Method Summary
Modifier and TypeMethodDescriptionfinds a matching provisioning configuration for a given GAV.
-
Field Details
-
FEATURE_PACK_TEMPLATES_YAML
- See Also:
-
-
Constructor Details
-
FeaturePackTemplateManager
- Throws:
MetadataException
-
FeaturePackTemplateManager
public FeaturePackTemplateManager(org.wildfly.prospero.model.FeaturePackTemplateList featurePackRecipeBook)
-
-
Method Details
-
find
public FeaturePackTemplate find(String groupId, String artifactId, String version) throws FeaturePackTemplateManager.FeatureTemplateVersionMismatchException finds a matching provisioning configuration for a given GAV. The provided artifactCoordinate needs to specify groupId, artifactId and version.- Parameters:
groupId- - groupId of the feature-pack Maven coordinatesartifactId- - artifactId of the feature-pack Maven coordinatesversion- - Maven version of the feature-pack being installed- Returns:
- matched configuration or null if either it doesn't exist
- Throws:
FeaturePackTemplateManager.FeatureTemplateVersionMismatchException- - if the template GA is matched, but none of the records match the version
-