o Restored methods for backward compat (e.g. with maven-enforcer-plugin)

git-svn-id: https://svn.apache.org/repos/asf/maven/components/trunk@804403 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Benjamin Bentmann 2009-08-14 22:48:46 +00:00
parent e0c8417db5
commit 828db37251
1 changed files with 29 additions and 0 deletions

View File

@ -34,6 +34,7 @@ import org.apache.maven.project.MavenProject;
import org.apache.maven.project.ProjectBuildingRequest; import org.apache.maven.project.ProjectBuildingRequest;
import org.apache.maven.settings.Settings; import org.apache.maven.settings.Settings;
import org.codehaus.plexus.PlexusContainer; import org.codehaus.plexus.PlexusContainer;
import org.codehaus.plexus.component.repository.exception.ComponentLookupException;
/** /**
* @author Jason van Zyl * @author Jason van Zyl
@ -102,6 +103,34 @@ public class MavenSession
return container; 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() public RepositoryCache getRepositoryCache()
{ {
return request.getRepositoryCache(); return request.getRepositoryCache();