org.apache.maven.dotnet
Interface NMavenContext

All Known Subinterfaces:
CompilerContext, ExecutableContext, RepositoryExecutableContext
All Known Implementing Classes:
CompilerContextImpl, ExecutableContextImpl, RepositoryExecutableContextImpl

public interface NMavenContext

Provides services for obtaining repositories, a plexus logger and the maven project.

Author:
Shane Isbell

Field Summary
static java.lang.String ROLE
          Role used to register component implementations with the container.
 
Method Summary
 Repository find(java.lang.String repositoryName)
          This method is used to obtain an instance of a Repository specified within the registry-config.xml file.
 org.codehaus.plexus.logging.Logger getLogger()
          Returns Maven Plexus logger: Log.
 

Field Detail

ROLE

static final java.lang.String ROLE
Role used to register component implementations with the container.

Method Detail

find

Repository find(java.lang.String repositoryName)
                throws RepositoryNotFoundException
This method is used to obtain an instance of a Repository specified within the registry-config.xml file. This method allows the application developer to create configuration files and have them accessible through the NMaven Context. For more information on how the registry/repository works, go to http://jvending.sourceforge.net/registry-cdc/

Parameters:
repositoryName - the name of the repository. This name should match the / field within the registry-config.xml file.
Returns:
repository for the specified repository name
Throws:
RepositoryNotFoundException - if repository is not found.

getLogger

org.codehaus.plexus.logging.Logger getLogger()
Returns Maven Plexus logger: Log.

Returns:
the plugin logger


Copyright © 2007 NMaven. All Rights Reserved.