Class DefaultModelCache
java.lang.Object
org.apache.maven.repository.internal.DefaultModelCache
- All Implemented Interfaces:
- ModelCache
A model builder cache backed by the repository system cache.
- Author:
- Benjamin Bentmann
- 
Method SummaryModifier and TypeMethodDescriptionprotected ObjectGets the specified data from the cache.Gets the specified data from the cache.static ModelCachenewInstance(org.eclipse.aether.RepositorySystemSession session) protected voidvoidPuts the specified data into the cache.voidPuts the specified data into the cache.Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.maven.model.building.ModelCacheget, get, put, put
- 
Method Details- 
newInstance
- 
getDescription copied from interface:ModelCacheGets the specified data from the cache.- Specified by:
- getin interface- ModelCache
- Parameters:
- path- The path of the cache record, must not be- null.
- tag- The tag of the cache record, must not be- null.
- Returns:
- The requested data or nullif none was present in the cache.
 
- 
putDescription copied from interface:ModelCachePuts the specified data into the cache.- Specified by:
- putin interface- ModelCache
- Parameters:
- path- The path 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.
 
- 
getDescription copied from interface:ModelCacheGets the specified data from the cache.- Specified by:
- getin 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 nullif none was present in the cache.
 
- 
putDescription copied from interface:ModelCachePuts the specified data into the cache.- Specified by:
- putin 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.
 
- 
get
- 
put
 
-