Package org.apache.maven.impl.cache
Class CacheConfigurationResolver
java.lang.Object
org.apache.maven.impl.cache.CacheConfigurationResolver
Resolves cache configuration for requests based on user-defined selectors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidClears the selector cache.static CacheConfigresolveConfig(Request<?> req, Session session) Resolves cache configuration for the given request and session.
-
Constructor Details
-
CacheConfigurationResolver
public CacheConfigurationResolver()
-
-
Method Details
-
resolveConfig
Resolves cache configuration for the given request and session.- Parameters:
req- the request to resolve configuration forsession- the session containing user properties- Returns:
- the resolved cache configuration
-
clearCache
public static void clearCache()Clears the selector cache. Useful for testing.
-