|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.smartics.maven.util.project.DefaultMavenContext
public class DefaultMavenContext
A simple bean to provide information to services that require some sort of Maven infrastructure. This is something like the Plexus container, but it is not required to have that reference.
Constructor Summary | |
---|---|
DefaultMavenContext(Log log, MavenProjectBuilder projectBuilder, ArtifactRepository localRepository, ProfileManager profileManager) Constructor that sets the container referenct to null . |
|
DefaultMavenContext(Log log, org.codehaus.plexus.PlexusContainer container, String localRepositoryDirName) Default constructor. |
Method Summary | |
---|---|
org.codehaus.plexus.PlexusContainer |
getContainer() Returns a reference to the plexus container. |
ArtifactRepository |
getLocalArtifactRepository() Returns a reference to the local artifact repository. |
Log |
getLog() Returns the plugin logger. |
ProfileManager |
getProfileManager() Returns a reference to the profile manager. |
MavenProjectBuilder |
getProjectBuilder() Returns a reference to the configured project builder. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultMavenContext(Log log, org.codehaus.plexus.PlexusContainer container, String localRepositoryDirName) throws org.codehaus.plexus.component.repository.exception.ComponentLookupException
log
- the logger provided by the Maven client that is the client to this context.
container
- the plexus container with further information to be set.
localRepositoryDirName
- the path to the local repository.
org.codehaus.plexus.component.repository.exception.ComponentLookupException
- if a required component cannot be found.
public DefaultMavenContext(Log log, MavenProjectBuilder projectBuilder, ArtifactRepository localRepository, ProfileManager profileManager)
null
.
log
- the logger provided by the Maven client that is the client to this context.
projectBuilder
- the project builder to set.
localRepository
- the local artefact repository to set.
profileManager
- the profile manager to set.
Method Detail |
---|
public Log getLog()
null
.
getLog
in interface
MavenContext
MavenContext.getLog()
public org.codehaus.plexus.PlexusContainer getContainer()
null
.
getContainer
in interface
MavenContext
MavenContext.getContainer()
public MavenProjectBuilder getProjectBuilder()
null
.
getProjectBuilder
in interface
MavenContext
MavenContext.getProjectBuilder()
public ArtifactRepository getLocalArtifactRepository()
null
.
getLocalArtifactRepository
in interface
MavenContext
MavenContext.getLocalArtifactRepository()
public ProfileManager getProfileManager()
null
.
getProfileManager
in interface
MavenContext
MavenContext.getProfileManager()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |