org.apache.maven.plugin
Class DefaultExtensionRealmCache

java.lang.Object
  extended by org.apache.maven.plugin.DefaultExtensionRealmCache
All Implemented Interfaces:
ExtensionRealmCache

@Component(role=ExtensionRealmCache.class)
public class DefaultExtensionRealmCache
extends Object
implements ExtensionRealmCache

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


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.maven.plugin.ExtensionRealmCache
ExtensionRealmCache.CacheRecord
 
Constructor Summary
DefaultExtensionRealmCache()
           
 
Method Summary
 void flush()
           
 ExtensionRealmCache.CacheRecord get(List<? extends Artifact> extensionArtifacts)
           
 ExtensionRealmCache.CacheRecord put(List<? extends Artifact> extensionArtifacts, ClassRealm extensionRealm, ExtensionDescriptor extensionDescriptor)
           
 void register(MavenProject project, ExtensionRealmCache.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

DefaultExtensionRealmCache

public DefaultExtensionRealmCache()
Method Detail

get

public ExtensionRealmCache.CacheRecord get(List<? extends Artifact> extensionArtifacts)
Specified by:
get in interface ExtensionRealmCache

put

public ExtensionRealmCache.CacheRecord put(List<? extends Artifact> extensionArtifacts,
                                           ClassRealm extensionRealm,
                                           ExtensionDescriptor extensionDescriptor)
Specified by:
put in interface ExtensionRealmCache

flush

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

register

public void register(MavenProject project,
                     ExtensionRealmCache.CacheRecord record)
Description copied from interface: ExtensionRealmCache
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 ExtensionRealmCache
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.