org.apache.maven.plugin.ear.util
Class ArtifactTypeMappingService

java.lang.Object
  extended by org.apache.maven.plugin.ear.util.ArtifactTypeMappingService

public class ArtifactTypeMappingService
extends Object

Allows to map custom artifact type to standard type.

Version:
$Id: ArtifactTypeMappingService.java 776216 2009-05-19 07:12:32Z aheritier $
Author:
Stephane Nicoll

Method Summary
 void configure(PlexusConfiguration plexusConfiguration)
           
static ArtifactTypeMappingService getInstance()
           
 String getStandardType(String type)
          Returns the standard type for the specified type.
 boolean isMappedToType(String standardType, String customType)
          Specify whether the customType could be mapped to the standardType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ArtifactTypeMappingService getInstance()

configure

public void configure(PlexusConfiguration plexusConfiguration)
               throws EarPluginException,
                      PlexusConfigurationException
Throws:
EarPluginException
PlexusConfigurationException

isMappedToType

public boolean isMappedToType(String standardType,
                              String customType)
Specify whether the customType could be mapped to the standardType.

Parameters:
standardType - the standard type (ejb, jar, war, ...)
customType - a user-defined type
Returns:
true if the customType could be mapped to the standard type

getStandardType

public String getStandardType(String type)
                       throws UnknownArtifactTypeException
Returns the standard type for the specified type. If the specified type is already a standard type, the orignal type is returned.

Parameters:
type - a type
Returns:
the standard type (ejb, jar, war, ...) for this type
Throws:
UnknownArtifactTypeException


Copyright © 2002-2010 The Apache Software Foundation. All Rights Reserved.