org.sonatype.aether.util
Class DefaultRepositoryCache

java.lang.Object
  extended by org.sonatype.aether.util.DefaultRepositoryCache
All Implemented Interfaces:
RepositoryCache

public class DefaultRepositoryCache
extends Object
implements RepositoryCache

A simplistic repository cache backed by a ConcurrentHashMap. The simplistic nature of this cache makes it only suitable for use with short-lived repository system sessions.

Author:
Benjamin Bentmann

Constructor Summary
DefaultRepositoryCache()
           
 
Method Summary
 Object get(RepositorySystemSession session, Object key)
           
 void put(RepositorySystemSession session, Object key, Object data)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultRepositoryCache

public DefaultRepositoryCache()
Method Detail

get

public Object get(RepositorySystemSession session,
                  Object key)
Specified by:
get in interface RepositoryCache

put

public void put(RepositorySystemSession session,
                Object key,
                Object data)
Specified by:
put in interface RepositoryCache


Copyright © 2010-2011 Sonatype, Inc.. All Rights Reserved.