Class CacheSelectorParser

java.lang.Object
org.apache.maven.impl.cache.CacheSelectorParser

public class CacheSelectorParser extends Object
Parser for cache selector configuration strings. Supports syntax like:
 ArtifactResolutionRequest { scope: session, ref: soft }
 ModelBuildRequest { scope: request, ref: soft }
 ModelBuilderRequest VersionRangeRequest { ref: hard }
 ModelBuildRequest * { ref: hard }
 VersionRangeRequest { scope: session }
 * { ref: weak }
 
  • Constructor Details

    • CacheSelectorParser

      public CacheSelectorParser()
  • Method Details

    • parse

      public static List<CacheSelector> parse(String configString)
      Parses a cache configuration string into a list of cache selectors.
      Parameters:
      configString - the configuration string to parse
      Returns:
      list of parsed cache selectors, ordered by specificity (most specific first)