org.apache.maven.plugin.issues
Class AbstractIssueManagementSystem
java.lang.Object
org.apache.maven.plugin.issues.AbstractIssueManagementSystem
- All Implemented Interfaces:
- IssueManagementSystem
- Direct Known Subclasses:
- JIRAIssueManagmentSystem, TracIssueManagmentSystem
public abstract class AbstractIssueManagementSystem
- extends Object
- implements IssueManagementSystem
Historically, this plugin started out working against an IMS-neutral XML file, and then added extensive support for
JIRA with some small snippets of code for other issue management systems. This class is intended to start a cleaner
modularity for support of multiple systems.
Initially, all it provides is a structure for mapping from per-IMS issue types to the three categories defined in
IssueAdapter
.
Note that the map in here is not immutable. It contains the default
configuration for an IMS. Users are expected to add entries to the map via configuration
to reflect their customizations.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
issueTypeMap
protected Map<String,IssueType> issueTypeMap
AbstractIssueManagementSystem
protected AbstractIssueManagementSystem()
getIssueTypeMap
public Map<String,IssueType> getIssueTypeMap()
- Description copied from interface:
IssueManagementSystem
- Get a mapping of issue types used in this issue management system to the ones used in a changes.xml file.
- Specified by:
getIssueTypeMap
in interface IssueManagementSystem
- Returns:
- The map from keys used in poms and other config files to issue types.
getName
public abstract String getName()
- Description copied from interface:
IssueManagementSystem
- Get the name of the issue management system.
- Specified by:
getName
in interface IssueManagementSystem
- Returns:
- The name of the IMS.
applyConfiguration
public void applyConfiguration(Map<String,String> issueTypes)
throws MojoExecutionException
- Description copied from interface:
IssueManagementSystem
- Configure this issue management system.
- Specified by:
applyConfiguration
in interface IssueManagementSystem
- Parameters:
issueTypes
- The mapping of issue types used in this issue management system to the ones used in a changes.xml file
- Throws:
MojoExecutionException
- If the configuration fails
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.