Package org.wildfly.prospero.model
Class FeaturePackTemplateManager
- java.lang.Object
-
- org.wildfly.prospero.model.FeaturePackTemplateManager
-
public class FeaturePackTemplateManager extends Object
Matches provisioning configurations that need to be applied if a certain feature pack GAV is installed.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFeaturePackTemplateManager.FeatureTemplateVersionMismatchException
-
Field Summary
Fields Modifier and Type Field Description protected static StringFEATURE_PACK_TEMPLATES_YAML
-
Constructor Summary
Constructors Constructor Description FeaturePackTemplateManager()FeaturePackTemplateManager(org.wildfly.prospero.model.FeaturePackTemplateList featurePackRecipeBook)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FeaturePackTemplatefind(String groupId, String artifactId, String version)finds a matching provisioning configuration for a given GAV.
-
-
-
Field Detail
-
FEATURE_PACK_TEMPLATES_YAML
protected static final String FEATURE_PACK_TEMPLATES_YAML
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FeaturePackTemplateManager
public FeaturePackTemplateManager() throws MetadataException- Throws:
MetadataException
-
FeaturePackTemplateManager
public FeaturePackTemplateManager(org.wildfly.prospero.model.FeaturePackTemplateList featurePackRecipeBook)
-
-
Method Detail
-
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
-
-