org.apache.maven.dotnet.executable.impl
Class RepositoryExecutableContextImpl

java.lang.Object
  extended by org.apache.maven.dotnet.executable.impl.RepositoryExecutableContextImpl
All Implemented Interfaces:
RepositoryExecutableContext, NMavenContext, org.codehaus.plexus.logging.LogEnabled

public class RepositoryExecutableContextImpl
extends java.lang.Object
implements RepositoryExecutableContext, org.codehaus.plexus.logging.LogEnabled

Provides an implementation of the repository executable context.

Author:
Shane Isbell

Field Summary
 
Fields inherited from interface org.apache.maven.dotnet.NMavenContext
ROLE
 
Constructor Summary
RepositoryExecutableContextImpl()
           
 
Method Summary
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 Repository find(java.lang.String repositoryName)
          This method is used to obtain an instance of a Repository specified within the registry-config.xml file.
 ExecutableConfig getExecutableConfig()
          Returns user-defined configuration for this context.
 org.codehaus.plexus.logging.Logger getLogger()
          Returns Maven Plexus logger: Log.
 NetExecutable getNetExecutable()
          Returns an instance of NetExecutable for this context.
 void init(ExecutableConfig executableConfig)
          Initializes this context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RepositoryExecutableContextImpl

public RepositoryExecutableContextImpl()
Method Detail

enableLogging

public void enableLogging(org.codehaus.plexus.logging.Logger logger)
Specified by:
enableLogging in interface org.codehaus.plexus.logging.LogEnabled
See Also:
LogEnabled.enableLogging(org.codehaus.plexus.logging.Logger)

getLogger

public org.codehaus.plexus.logging.Logger getLogger()
Description copied from interface: NMavenContext
Returns Maven Plexus logger: Log.

Specified by:
getLogger in interface NMavenContext
Returns:
the plugin logger

getExecutableConfig

public ExecutableConfig getExecutableConfig()
Description copied from interface: RepositoryExecutableContext
Returns user-defined configuration for this context.

Specified by:
getExecutableConfig in interface RepositoryExecutableContext
Returns:
user-defined configuration for this context

getNetExecutable

public NetExecutable getNetExecutable()
                               throws ExecutionException
Description copied from interface: RepositoryExecutableContext
Returns an instance of NetExecutable for this context.

Specified by:
getNetExecutable in interface RepositoryExecutableContext
Returns:
an instance of the NetExecutable
Throws:
ExecutionException - if there is a problem finding an appropriate executable.

find

public Repository find(java.lang.String repositoryName)
                throws RepositoryNotFoundException
Description copied from interface: NMavenContext
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/

Specified by:
find in interface NMavenContext
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.

init

public void init(ExecutableConfig executableConfig)
          throws InitializationException
Description copied from interface: RepositoryExecutableContext
Initializes this context.

Specified by:
init in interface RepositoryExecutableContext
Parameters:
executableConfig - the executable config for this context
Throws:
InitializationException - if the context cannot be initialized


Copyright © 2007 NMaven. All Rights Reserved.