org.apache.maven.plugin
Class DefaultExtensionRealmCache
java.lang.Object
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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultExtensionRealmCache
public DefaultExtensionRealmCache()
get
public ExtensionRealmCache.CacheRecord get(List<? extends org.sonatype.aether.artifact.Artifact> extensionArtifacts)
- Specified by:
get
in interface ExtensionRealmCache
put
public ExtensionRealmCache.CacheRecord put(List<? extends org.sonatype.aether.artifact.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-2010 The Apache Software Foundation. All Rights Reserved.