Class ArtifactTypeMappingService
java.lang.Object
org.apache.maven.plugins.ear.util.ArtifactTypeMappingService
Allows to map custom artifact type to standard type.
- Author:
- Stephane Nicoll
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidconfigure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration) getStandardType(String type) Returns the standard type for the specifiedtype.booleanisMappedToType(String standardType, String customType) Specify whether thecustomTypecould be mapped to thestandardType.
-
Constructor Details
-
ArtifactTypeMappingService
public ArtifactTypeMappingService()Create an instance.
-
-
Method Details
-
configure
public void configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration) throws EarPluginException, org.codehaus.plexus.configuration.PlexusConfigurationException - Parameters:
plexusConfiguration-PlexusConfiguration- Throws:
EarPluginException-EarPluginExceptionorg.codehaus.plexus.configuration.PlexusConfigurationException-PlexusConfigurationException
-
isMappedToType
Specify whether thecustomTypecould be mapped to thestandardType.- 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
Returns the standard type for the specifiedtype. 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- In case of missing mappings types.
-