Class AbstractStringBasedModelInterpolator

All Implemented Interfaces:
Direct Known Subclasses:

public abstract class AbstractStringBasedModelInterpolator extends Object implements ModelInterpolator
Use a regular expression search to find and resolve expressions within the POM.
  • Constructor Details

  • 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 interface ModelInterpolator
      model - The model to interpolate, must not be null.
      projectDir - The project directory, may be null 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 be null.
      problems - The container used to collect problems that were encountered, must not be null.
      The interpolated model, never null.
    • getProjectPrefixes

      protected List<String> getProjectPrefixes(ModelBuildingRequest config)
    • createValueSources

      protected List<org.codehaus.plexus.interpolation.ValueSource> createValueSources(Model model, File projectDir, ModelBuildingRequest config, ModelProblemCollector problems)
    • createPostProcessors

      protected List<? extends org.codehaus.plexus.interpolation.InterpolationPostProcessor> createPostProcessors(Model model, File projectDir, ModelBuildingRequest config)
    • createRecursionInterceptor

      protected org.codehaus.plexus.interpolation.RecursionInterceptor createRecursionInterceptor(ModelBuildingRequest config)