org.apache.maven.execution
Class MavenSession

java.lang.Object
  extended by org.apache.maven.execution.MavenSession

public class MavenSession
extends java.lang.Object

Version:
$Id: MavenSession.java 600646 2007-12-03 19:46:37Z mkleint $
Author:
Jason van Zyl

Constructor Summary
MavenSession(org.codehaus.plexus.PlexusContainer container, Settings settings, ArtifactRepository localRepository, EventDispatcher eventDispatcher, ReactorManager reactorManager, java.util.List goals, java.lang.String executionRootDir, java.util.Properties executionProperties, java.util.Date startTime)
           
 
Method Summary
 org.codehaus.plexus.PlexusContainer getContainer()
           
 MavenProject getCurrentProject()
          Return the current project for use in a mojo execution.
 EventDispatcher getEventDispatcher()
           
 java.util.Properties getExecutionProperties()
           
 java.lang.String getExecutionRootDirectory()
           
 java.util.List getGoals()
           
 ArtifactRepository getLocalRepository()
           
 java.util.Map getPluginContext(PluginDescriptor pluginDescriptor, MavenProject project)
           
 Settings getSettings()
           
 java.util.List getSortedProjects()
           
 java.util.Date getStartTime()
           
 boolean isUsingPOMsFromFilesystem()
           
 java.lang.Object lookup(java.lang.String role)
           
 java.lang.Object lookup(java.lang.String role, java.lang.String roleHint)
           
 java.util.List lookupList(java.lang.String role)
           
 java.util.Map lookupMap(java.lang.String role)
           
 void setCurrentProject(MavenProject currentProject)
           
 void setUsingPOMsFromFilesystem(boolean usingPOMsFromFilesystem)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MavenSession

public MavenSession(org.codehaus.plexus.PlexusContainer container,
                    Settings settings,
                    ArtifactRepository localRepository,
                    EventDispatcher eventDispatcher,
                    ReactorManager reactorManager,
                    java.util.List goals,
                    java.lang.String executionRootDir,
                    java.util.Properties executionProperties,
                    java.util.Date startTime)
Method Detail

getPluginContext

public java.util.Map getPluginContext(PluginDescriptor pluginDescriptor,
                                      MavenProject project)

getContainer

public org.codehaus.plexus.PlexusContainer getContainer()

getLocalRepository

public ArtifactRepository getLocalRepository()

getGoals

public java.util.List getGoals()

getExecutionProperties

public java.util.Properties getExecutionProperties()

lookup

public java.lang.Object lookup(java.lang.String role)
                        throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

lookup

public java.lang.Object lookup(java.lang.String role,
                               java.lang.String roleHint)
                        throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

lookupList

public java.util.List lookupList(java.lang.String role)
                          throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

lookupMap

public java.util.Map lookupMap(java.lang.String role)
                        throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
Throws:
org.codehaus.plexus.component.repository.exception.ComponentLookupException

getEventDispatcher

public EventDispatcher getEventDispatcher()

getSettings

public Settings getSettings()

getSortedProjects

public java.util.List getSortedProjects()

getExecutionRootDirectory

public java.lang.String getExecutionRootDirectory()

setUsingPOMsFromFilesystem

public void setUsingPOMsFromFilesystem(boolean usingPOMsFromFilesystem)

isUsingPOMsFromFilesystem

public boolean isUsingPOMsFromFilesystem()

getStartTime

public java.util.Date getStartTime()

setCurrentProject

public void setCurrentProject(MavenProject currentProject)

getCurrentProject

public MavenProject getCurrentProject()
Return the current project for use in a mojo execution.



Copyright © 2001-2008 The Apache Software Foundation. All Rights Reserved.