From 3646d923a944ca4f6303b183b1ecc35ab2206823 Mon Sep 17 00:00:00 2001 From: Benjamin Bentmann Date: Tue, 22 Sep 2009 13:10:47 +0000 Subject: [PATCH] o Renamed classes to better describe purpose git-svn-id: https://svn.apache.org/repos/asf/maven/maven-3/trunk@817646 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/maven/plugin/DefaultBuildPluginManager.java | 4 ++-- ...DefaultPluginCache.java => DefaultPluginRealmCache.java} | 6 +++--- .../plugin/{PluginCache.java => PluginRealmCache.java} | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename maven-core/src/main/java/org/apache/maven/plugin/{DefaultPluginCache.java => DefaultPluginRealmCache.java} (98%) rename maven-core/src/main/java/org/apache/maven/plugin/{PluginCache.java => PluginRealmCache.java} (98%) diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java index a30e9d60f9..a24e4f9949 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultBuildPluginManager.java @@ -47,7 +47,7 @@ public class DefaultBuildPluginManager private PlexusContainer container; @Requirement - private PluginCache pluginCache; + private PluginRealmCache pluginCache; @Requirement private MavenPluginManager mavenPluginManager; @@ -158,7 +158,7 @@ public class DefaultBuildPluginManager ArtifactRepository localRepository = session.getLocalRepository(); List remoteRepositories = project.getPluginArtifactRepositories(); - PluginCache.CacheRecord cacheRecord = pluginCache.get( plugin, project, localRepository, remoteRepositories ); + PluginRealmCache.CacheRecord cacheRecord = pluginCache.get( plugin, project, localRepository, remoteRepositories ); if ( cacheRecord != null ) { diff --git a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginCache.java b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java similarity index 98% rename from maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginCache.java rename to maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java index e959544662..d08d1eac99 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginCache.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/DefaultPluginRealmCache.java @@ -37,9 +37,9 @@ import org.codehaus.plexus.component.annotations.Component; /** * Default PluginCache implementation. Assumes cached data does not change. */ -@Component( role = PluginCache.class ) -public class DefaultPluginCache - implements PluginCache +@Component( role = PluginRealmCache.class ) +public class DefaultPluginRealmCache + implements PluginRealmCache { protected static class CacheKey diff --git a/maven-core/src/main/java/org/apache/maven/plugin/PluginCache.java b/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java similarity index 98% rename from maven-core/src/main/java/org/apache/maven/plugin/PluginCache.java rename to maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java index fd3ac7f9fe..31ac90e84d 100644 --- a/maven-core/src/main/java/org/apache/maven/plugin/PluginCache.java +++ b/maven-core/src/main/java/org/apache/maven/plugin/PluginRealmCache.java @@ -27,7 +27,7 @@ import org.apache.maven.model.Plugin; import org.apache.maven.project.MavenProject; import org.codehaus.plexus.classworlds.realm.ClassRealm; -public interface PluginCache +public interface PluginRealmCache { public static class CacheRecord