org.apache.maven.dotnet.assembler.impl
Class AssemblerContextImpl

java.lang.Object
  extended by org.apache.maven.dotnet.assembler.impl.AssemblerContextImpl
All Implemented Interfaces:
AssemblerContext, org.codehaus.plexus.logging.LogEnabled

public final class AssemblerContextImpl
extends java.lang.Object
implements AssemblerContext, org.codehaus.plexus.logging.LogEnabled

Provides an implementation of the AssemblerContext.

Author:
Shane Isbell

Field Summary
 
Fields inherited from interface org.apache.maven.dotnet.assembler.AssemblerContext
ROLE
 
Constructor Summary
AssemblerContextImpl()
          Constructor.
 
Method Summary
 void enableLogging(org.codehaus.plexus.logging.Logger logger)
           
 AssemblyInfo getAssemblyInfo()
          Returns the assembly info associated with this context.
 AssemblyInfoMarshaller getAssemblyInfoMarshallerFor(java.lang.String language)
          Returns the marshaller for the given language
 java.lang.String getClassExtensionFor(java.lang.String language)
          Returns the class extension (cs, vb) for the specified language.
 void init(org.apache.maven.project.MavenProject mavenProject)
          Initializes the context
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblerContextImpl

public AssemblerContextImpl()
Constructor. This method is intended to by invoked by the plexus-container, not by the application developer.

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)

getAssemblyInfo

public AssemblyInfo getAssemblyInfo()
Description copied from interface: AssemblerContext
Returns the assembly info associated with this context.

Specified by:
getAssemblyInfo in interface AssemblerContext
Returns:
the assembly info associated with this context.
See Also:
AssemblerContext.getAssemblyInfo()

getAssemblyInfoMarshallerFor

public AssemblyInfoMarshaller getAssemblyInfoMarshallerFor(java.lang.String language)
                                                    throws AssemblyInfoException
Description copied from interface: AssemblerContext
Returns the marshaller for the given language

Specified by:
getAssemblyInfoMarshallerFor in interface AssemblerContext
Parameters:
language - the .NET language
Returns:
the marshaller for the specified language
Throws:
AssemblyInfoException - if no marshaller can be found for the specified language
See Also:
AssemblerContext.getAssemblyInfoMarshallerFor(String)

getClassExtensionFor

public java.lang.String getClassExtensionFor(java.lang.String language)
                                      throws PlatformUnsupportedException
Description copied from interface: AssemblerContext
Returns the class extension (cs, vb) for the specified language.

Specified by:
getClassExtensionFor in interface AssemblerContext
Parameters:
language - the class language. Must match language within the assembly-plugins.xml file.
Returns:
the class extension (cs, vb) for the specified language.
Throws:
PlatformUnsupportedException - the language is not supported
See Also:
AssemblerContext.getClassExtensionFor(String)

init

public void init(org.apache.maven.project.MavenProject mavenProject)
          throws InitializationException
Description copied from interface: AssemblerContext
Initializes the context

Specified by:
init in interface AssemblerContext
Parameters:
mavenProject - the maven project
Throws:
InitializationException - if the context cannot be initialized
See Also:
AssemblerContext.init(org.apache.maven.project.MavenProject)


Copyright © 2007 NMaven. All Rights Reserved.