org.apache.maven.mae.boot.services
Class DefaultMAEServiceManager

java.lang.Object
  extended by org.apache.maven.mae.boot.services.DefaultMAEServiceManager
All Implemented Interfaces:
MAEServiceManager

@Component(role=MAEServiceManager.class)
public class DefaultMAEServiceManager
extends Object
implements MAEServiceManager


Constructor Summary
DefaultMAEServiceManager()
           
 
Method Summary
 org.sonatype.aether.RepositorySystem aetherRepositorySystem()
          Retrieve the aether RepositorySystem component.
 org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession()
          Create a new RepositorySystemSession for resolving artifacts, using default configurations.
 org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession(org.apache.maven.execution.MavenExecutionRequest request)
          Create a new RepositorySystemSession for resolving artifacts, based on the configuration of a MavenExecutionRequest.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest()
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(MAEExecutionRequest executionRequest)
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.execution.MavenExecutionRequest executionRequest)
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.project.ProjectBuildingRequest template)
          Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.
 org.apache.maven.artifact.repository.ArtifactRepository defaultLocalRepository()
          Retrieve an ArtifactRepository instance configured for the default location of the Maven local repository.
 org.apache.maven.repository.RepositorySystem mavenRepositorySystem()
          Retrieve the Maven RepositorySystem component.
 org.apache.maven.project.ProjectBuilder projectBuilder()
          Retrieve the Maven ProjectBuilder component.
<T> T
service(Class<T> type)
          Retrieve a component from the Maven component environment, based on its class.
<T> T
service(Class<T> type, String hint)
          Retrieve a component from the Maven component environment, based on its class and an implementation hint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultMAEServiceManager

public DefaultMAEServiceManager()
Method Detail

projectBuilder

public org.apache.maven.project.ProjectBuilder projectBuilder()
Retrieve the Maven ProjectBuilder component.

Specified by:
projectBuilder in interface MAEServiceManager

createProjectBuildingRequest

public org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest()
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Specified by:
createProjectBuildingRequest in interface MAEServiceManager
Throws:
MAEEmbeddingException

createProjectBuildingRequest

public org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(MAEExecutionRequest executionRequest)
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Specified by:
createProjectBuildingRequest in interface MAEServiceManager
Throws:
MAEEmbeddingException

createProjectBuildingRequest

public org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.execution.MavenExecutionRequest executionRequest)
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Specified by:
createProjectBuildingRequest in interface MAEServiceManager
Throws:
MAEEmbeddingException

createProjectBuildingRequest

public org.apache.maven.project.DefaultProjectBuildingRequest createProjectBuildingRequest(org.apache.maven.project.ProjectBuildingRequest template)
                                                                                    throws MAEEmbeddingException
Create a new ProjectBuildingRequest to be used in building project instances from POM files or artifact coordinates.

Specified by:
createProjectBuildingRequest in interface MAEServiceManager
Throws:
MAEEmbeddingException

mavenRepositorySystem

public org.apache.maven.repository.RepositorySystem mavenRepositorySystem()
Retrieve the Maven RepositorySystem component.

Specified by:
mavenRepositorySystem in interface MAEServiceManager

aetherRepositorySystem

public org.sonatype.aether.RepositorySystem aetherRepositorySystem()
Retrieve the aether RepositorySystem component.

Specified by:
aetherRepositorySystem in interface MAEServiceManager

createAetherRepositorySystemSession

public org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession()
                                                                                throws MAEEmbeddingException
Create a new RepositorySystemSession for resolving artifacts, using default configurations.

Specified by:
createAetherRepositorySystemSession in interface MAEServiceManager
Throws:
MAEEmbeddingException

createAetherRepositorySystemSession

public org.sonatype.aether.RepositorySystemSession createAetherRepositorySystemSession(org.apache.maven.execution.MavenExecutionRequest request)
                                                                                throws MAEEmbeddingException
Create a new RepositorySystemSession for resolving artifacts, based on the configuration of a MavenExecutionRequest.

Specified by:
createAetherRepositorySystemSession in interface MAEServiceManager
Throws:
MAEEmbeddingException

defaultLocalRepository

public org.apache.maven.artifact.repository.ArtifactRepository defaultLocalRepository()
                                                                               throws MAEEmbeddingException
Retrieve an ArtifactRepository instance configured for the default location of the Maven local repository.

Specified by:
defaultLocalRepository in interface MAEServiceManager
Throws:
MAEEmbeddingException

service

public <T> T service(Class<T> type)
          throws MAEEmbeddingException
Retrieve a component from the Maven component environment, based on its class.
NOTE: This method requires that some MAELibrary present in the current environment has granted permission to lookup the component in question.

Specified by:
service in interface MAEServiceManager
Throws:
MAEEmbeddingException

service

public <T> T service(Class<T> type,
                     String hint)
          throws MAEEmbeddingException
Retrieve a component from the Maven component environment, based on its class and an implementation hint.
NOTE: This method requires that some MAELibrary present in the current environment has granted permission to lookup the component in question.

Specified by:
service in interface MAEServiceManager
Throws:
MAEEmbeddingException


Copyright © 2002-2011 The Apache Software Foundation. All Rights Reserved.