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

java.lang.Object
  extended by org.apache.maven.dotnet.assembler.impl.AssemblyPluginsRepository
All Implemented Interfaces:
Repository

public final class AssemblyPluginsRepository
extends java.lang.Object
implements Repository

Provides a way for loading the assembly-plugins.xml file and accessing its content.

Author:
Shane Isbell

Constructor Summary
AssemblyPluginsRepository()
          Constructor.
 
Method Summary
 org.apache.maven.dotnet.model.assembly.plugins.AssemblyPlugin getAssemblyPluginFor(java.lang.String language)
          Returns an assembly plugin for the specified programming language.
 java.util.List<org.apache.maven.dotnet.model.assembly.plugins.AssemblyPlugin> getAssemblyPlugins()
          Returns all assembly plugins.
 void load(java.io.InputStream inputStream, java.util.Hashtable properties)
          Loads the repository.
 void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssemblyPluginsRepository

public AssemblyPluginsRepository()
Constructor. This method is intended to by invoked by the RepositoryRegistry, not by the application developer.

Method Detail

load

public void load(java.io.InputStream inputStream,
                 java.util.Hashtable properties)
          throws java.io.IOException
Loads the repository.

Specified by:
load in interface Repository
Parameters:
inputStream - a stream of the repository file (typically from *.xml)
properties - additional user-supplied parameters used to customize the behavior of the repository
Throws:
java.io.IOException - if there is a problem loading the repository

setRepositoryRegistry

public void setRepositoryRegistry(RepositoryRegistry repositoryRegistry)
Specified by:
setRepositoryRegistry in interface Repository
See Also:
Repository.setRepositoryRegistry(org.apache.maven.dotnet.registry.RepositoryRegistry)

getAssemblyPlugins

public java.util.List<org.apache.maven.dotnet.model.assembly.plugins.AssemblyPlugin> getAssemblyPlugins()
Returns all assembly plugins. This list is live and any modification will remain until the next time the application starts.

Returns:
all assembly plugins.

getAssemblyPluginFor

public org.apache.maven.dotnet.model.assembly.plugins.AssemblyPlugin getAssemblyPluginFor(java.lang.String language)
                                                                                   throws AssemblyInfoException
Returns an assembly plugin for the specified programming language.

Parameters:
language - the programming language to use for matching an assembly plugin
Returns:
assembly plugin for the specified programming language. May not be null.
Throws:
AssemblyInfoException - if there is no plugin for the specified language


Copyright © 2007 NMaven. All Rights Reserved.