Class AbstractStringBasedModelInterpolator
java.lang.Object
org.apache.maven.model.interpolation.AbstractStringBasedModelInterpolator
- All Implemented Interfaces:
ModelInterpolator
- Direct Known Subclasses:
StringVisitorModelInterpolator
public abstract class AbstractStringBasedModelInterpolator
extends Object
implements ModelInterpolator
Use a regular expression search to find and resolve expressions within the POM.
-
Constructor Summary
ConstructorDescriptionAbstractStringBasedModelInterpolator
(PathTranslator pathTranslator, UrlNormalizer urlNormalizer, RootLocator rootLocator) -
Method Summary
Modifier and TypeMethodDescriptionprotected List
<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> createPostProcessors
(org.apache.maven.api.model.Model model, Path projectDir, ModelBuildingRequest config) protected org.codehaus.plexus.interpolation.RecursionInterceptor
protected List
<org.codehaus.plexus.interpolation.ValueSource> createValueSources
(org.apache.maven.api.model.Model model, Path projectDir, ModelBuildingRequest config, ModelProblemCollector problems) interpolateModel
(Model model, File projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Interpolates expressions in the specified model.interpolateModel
(Model model, Path projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Interpolates expressions in the specified model.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.apache.maven.model.interpolation.ModelInterpolator
interpolateModel, interpolateModel
-
Constructor Details
-
AbstractStringBasedModelInterpolator
@Inject public AbstractStringBasedModelInterpolator(PathTranslator pathTranslator, UrlNormalizer urlNormalizer, RootLocator rootLocator)
-
-
Method Details
-
interpolateModel
public Model interpolateModel(Model model, File projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelInterpolator
Interpolates expressions in the specified model. Note that implementations are free to either interpolate the provided model directly or to create a clone of the model and interpolate the clone. Callers should always use the returned model and must not rely on the input model being updated.- Specified by:
interpolateModel
in interfaceModelInterpolator
- Parameters:
model
- The model to interpolate, must not benull
.projectDir
- The project directory, may benull
if the model does not belong to a local project but to some artifact's metadata.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The interpolated model, never
null
.
-
interpolateModel
public Model interpolateModel(Model model, Path projectDir, ModelBuildingRequest request, ModelProblemCollector problems) Description copied from interface:ModelInterpolator
Interpolates expressions in the specified model. Note that implementations are free to either interpolate the provided model directly or to create a clone of the model and interpolate the clone. Callers should always use the returned model and must not rely on the input model being updated.- Specified by:
interpolateModel
in interfaceModelInterpolator
- Parameters:
model
- The model to interpolate, must not benull
.projectDir
- The project directory, may benull
if the model does not belong to a local project but to some artifact's metadata.request
- The model building request that holds further settings, must not benull
.problems
- The container used to collect problems that were encountered, must not benull
.- Returns:
- The interpolated model, never
null
.
-
getProjectPrefixes
-
createValueSources
protected List<org.codehaus.plexus.interpolation.ValueSource> createValueSources(org.apache.maven.api.model.Model model, Path projectDir, ModelBuildingRequest config, ModelProblemCollector problems) -
createPostProcessors
protected List<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> createPostProcessors(org.apache.maven.api.model.Model model, Path projectDir, ModelBuildingRequest config) -
createRecursionInterceptor
protected org.codehaus.plexus.interpolation.RecursionInterceptor createRecursionInterceptor(ModelBuildingRequest config)
-