Author: bentmann
Date: Fri Aug 14 22:48:46 2009
New Revision: 804403

URL: http://svn.apache.org/viewvc?rev=804403&view=rev
Log:
o Restored methods for backward compat (e.g. with maven-enforcer-plugin)

Modified:
    
maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java

Modified: 
maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
URL: 
http://svn.apache.org/viewvc/maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java?rev=804403&r1=804402&r2=804403&view=diff
==============================================================================
--- 
maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
 (original)
+++ 
maven/components/trunk/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
 Fri Aug 14 22:48:46 2009
@@ -34,6 +34,7 @@
 import org.apache.maven.project.ProjectBuildingRequest;
 import org.apache.maven.settings.Settings;
 import org.codehaus.plexus.PlexusContainer;
+import 
org.codehaus.plexus.component.repository.exception.ComponentLookupException;
 
 /**
  * @author Jason van Zyl
@@ -102,6 +103,34 @@
         return container;
     }
 
+    @Deprecated
+    public Object lookup( String role )
+        throws ComponentLookupException
+    {
+        return container.lookup( role );
+    }
+
+    @Deprecated
+    public Object lookup( String role, String roleHint )
+        throws ComponentLookupException
+    {
+        return container.lookup( role, roleHint );
+    }
+
+    @Deprecated
+    public List lookupList( String role )
+        throws ComponentLookupException
+    {
+        return container.lookupList( role );
+    }
+
+    @Deprecated
+    public Map lookupMap( String role )
+        throws ComponentLookupException
+    {
+        return container.lookupMap( role );
+    }
+
     public RepositoryCache getRepositoryCache()
     {
         return request.getRepositoryCache();


Reply via email to