public class ArtifactTypeMappingService extends Object
Constructor and Description |
---|
ArtifactTypeMappingService()
Create an instance.
|
Modifier and Type | Method and Description |
---|---|
void |
configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration) |
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 . |
public ArtifactTypeMappingService()
public void configure(org.codehaus.plexus.configuration.PlexusConfiguration plexusConfiguration) throws EarPluginException, org.codehaus.plexus.configuration.PlexusConfigurationException
plexusConfiguration
- PlexusConfiguration
EarPluginException
- EarPluginException
org.codehaus.plexus.configuration.PlexusConfigurationException
- PlexusConfigurationException
public boolean isMappedToType(String standardType, String customType)
customType
could be mapped to the standardType
.standardType
- the standard type (ejb, jar, war, ...)customType
- a user-defined typepublic String getStandardType(String type) throws UnknownArtifactTypeException
type
. If the specified type is already a standard type, the
orignal type is returned.type
- a typeUnknownArtifactTypeException
- In case of missing mappings types.Copyright © 2002–2022 The Apache Software Foundation. All rights reserved.