org.apache.maven.plugin.ear
Class EarModuleFactory

java.lang.Object
  extended by org.apache.maven.plugin.ear.EarModuleFactory

public final class EarModuleFactory
extends Object

Builds an EarModule based on an Artifact.

Version:
$Id: EarModuleFactory.java 1228837 2012-01-08 13:19:38Z rfscholte $
Author:
Stephane Nicoll

Field Summary
static List<String> standardArtifactTypes
           
 
Constructor Summary
EarModuleFactory()
           
 
Method Summary
static List<String> getStandardArtifactTypes()
          Returns a list of standard artifact types.
static boolean isStandardArtifactType(String type)
          Specify whether the specified type is standard artifact type.
static EarModule newEarModule(Artifact artifact, JavaEEVersion javaEEVersion, String defaultLibBundleDir, Boolean includeInApplicationXml, ArtifactTypeMappingService typeMappingService)
          Creates a new EarModule based on the specified Artifact and the specified execution configuration.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

standardArtifactTypes

public static final List<String> standardArtifactTypes
Constructor Detail

EarModuleFactory

public EarModuleFactory()
Method Detail

newEarModule

public static EarModule newEarModule(Artifact artifact,
                                     JavaEEVersion javaEEVersion,
                                     String defaultLibBundleDir,
                                     Boolean includeInApplicationXml,
                                     ArtifactTypeMappingService typeMappingService)
                              throws UnknownArtifactTypeException
Creates a new EarModule based on the specified Artifact and the specified execution configuration.

Parameters:
artifact - the artifact
javaEEVersion - the javaEE version to use
defaultLibBundleDir - the default bundle dir for JarModule
includeInApplicationXml - should JarModule be included in application Xml
typeMappingService - The artifact type mapping service
Returns:
an ear module for this artifact
Throws:
UnknownArtifactTypeException - if the artifact is not handled

getStandardArtifactTypes

public static List<String> getStandardArtifactTypes()
Returns a list of standard artifact types.

Returns:
the standard artifact types

isStandardArtifactType

public static boolean isStandardArtifactType(String type)
Specify whether the specified type is standard artifact type.

Parameters:
type - the type to check
Returns:
true if the specified type is a standard artifact type


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