Class ReactorModelCache

java.lang.Object
org.apache.maven.project.ReactorModelCache
All Implemented Interfaces:
ModelCache

class ReactorModelCache extends Object implements ModelCache
A simple model cache used to accelerate model building during a reactor build.
  • Field Details

  • Constructor Details

    • ReactorModelCache

      ReactorModelCache()
  • Method Details

    • get

      public Object get(String groupId, String artifactId, String version, String tag)
      Description copied from interface: ModelCache
      Gets the specified data from the cache.
      Specified by:
      get in interface ModelCache
      Parameters:
      groupId - The group id of the cache record, must not be null.
      artifactId - The artifact id of the cache record, must not be null.
      version - The version of the cache record, must not be null.
      tag - The tag of the cache record, must not be null.
      Returns:
      The requested data or null if none was present in the cache.
    • put

      public void put(String groupId, String artifactId, String version, String tag, Object data)
      Description copied from interface: ModelCache
      Puts the specified data into the cache.
      Specified by:
      put in interface ModelCache
      Parameters:
      groupId - The group id of the cache record, must not be null.
      artifactId - The artifact id of the cache record, must not be null.
      version - The version of the cache record, must not be null.
      tag - The tag of the cache record, must not be null.
      data - The data to store in the cache, must not be null.