org.apache.maven.project
Class DefaultProjectRealmCache

java.lang.Object
  extended by org.apache.maven.project.DefaultProjectRealmCache
All Implemented Interfaces:
ProjectRealmCache

@Component(role=ProjectRealmCache.class)
public class DefaultProjectRealmCache
extends Object
implements ProjectRealmCache

Default project realm cache implementation. Assumes cached data does not change.


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.maven.project.ProjectRealmCache
ProjectRealmCache.CacheRecord
 
Constructor Summary
DefaultProjectRealmCache()
           
 
Method Summary
 void flush()
           
 ProjectRealmCache.CacheRecord get(List<? extends ClassRealm> extensionRealms)
           
 ProjectRealmCache.CacheRecord put(List<? extends ClassRealm> extensionRealms, ClassRealm projectRealm, DependencyFilter extensionArtifactFilter)
           
 void register(MavenProject project, ProjectRealmCache.CacheRecord record)
          Registers the specified cache record for usage with the given project.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProjectRealmCache

public DefaultProjectRealmCache()
Method Detail

get

public ProjectRealmCache.CacheRecord get(List<? extends ClassRealm> extensionRealms)
Specified by:
get in interface ProjectRealmCache

put

public ProjectRealmCache.CacheRecord put(List<? extends ClassRealm> extensionRealms,
                                         ClassRealm projectRealm,
                                         DependencyFilter extensionArtifactFilter)
Specified by:
put in interface ProjectRealmCache

flush

public void flush()
Specified by:
flush in interface ProjectRealmCache

register

public void register(MavenProject project,
                     ProjectRealmCache.CacheRecord record)
Description copied from interface: ProjectRealmCache
Registers the specified cache record for usage with the given project. Integrators can use the information collected from this method in combination with a custom cache implementation to dispose unused records from the cache.

Specified by:
register in interface ProjectRealmCache
Parameters:
project - The project that employs the plugin realm, must not be null.
record - The cache record being used for the project, must not be null.


Copyright © 2001-2012 The Apache Software Foundation. All Rights Reserved.