Class CacheConfigurationResolver

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

public class CacheConfigurationResolver extends Object
Resolves cache configuration for requests based on user-defined selectors.
  • Constructor Details

    • CacheConfigurationResolver

      public CacheConfigurationResolver()
  • Method Details

    • resolveConfig

      public static CacheConfig resolveConfig(Request<?> req, Session session)
      Resolves cache configuration for the given request and session.
      Parameters:
      req - the request to resolve configuration for
      session - the session containing user properties
      Returns:
      the resolved cache configuration
    • clearCache

      public static void clearCache()
      Clears the selector cache. Useful for testing.