org.apache.maven.plugin.ear.util
Class ArtifactTypeMappingService
java.lang.Object
org.apache.maven.plugin.ear.util.ArtifactTypeMappingService
public class ArtifactTypeMappingService
- extends java.lang.Object
Allows to map custom artifact type to standard type.
- Version:
- $Id: ArtifactTypeMappingService.java 942855 2010-05-10 19:13:52Z krosenvold $
- Author:
- Stephane Nicoll
Method Summary |
void |
configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration)
|
java.lang.String |
getStandardType(java.lang.String type)
Returns the standard type for the specified type. |
boolean |
isMappedToType(java.lang.String standardType,
java.lang.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 |
ArtifactTypeMappingService
public ArtifactTypeMappingService()
configure
public void configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration)
throws EarPluginException,
org.codehaus.plexus.configuration.PlexusConfigurationException
- Throws:
EarPluginException
org.codehaus.plexus.configuration.PlexusConfigurationException
isMappedToType
public boolean isMappedToType(java.lang.String standardType,
java.lang.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 java.lang.String getStandardType(java.lang.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 Apache Software Foundation. All Rights Reserved.