org.apache.maven.plugin.ear
Class EarModuleFactory

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

public final class EarModuleFactory
extends java.lang.Object

Builds an EarModule based on an Artifact.

Version:
$Id: EarModuleFactory.java 746754 2009-02-22 16:21:05Z snicoll $
Author:
Stephane Nicoll

Field Summary
static java.util.List standardArtifactTypes
           
 
Constructor Summary
EarModuleFactory()
           
 
Method Summary
static java.util.List getStandardArtifactTypes()
          Returns a list of standard artifact types.
static boolean isStandardArtifactType(java.lang.String type)
          Specify whether the specified type is standard artifact type.
static EarModule newEarModule(org.apache.maven.artifact.Artifact artifact, java.lang.String defaultLibBundleDir, java.lang.Boolean includeInApplicationXml)
          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 java.util.List standardArtifactTypes
Constructor Detail

EarModuleFactory

public EarModuleFactory()
Method Detail

newEarModule

public static EarModule newEarModule(org.apache.maven.artifact.Artifact artifact,
                                     java.lang.String defaultLibBundleDir,
                                     java.lang.Boolean includeInApplicationXml)
                              throws UnknownArtifactTypeException
Creates a new EarModule based on the specified Artifact and the specified execution configuration.

Parameters:
artifact - the artifact
defaultLibBundleDir - the default bundle dir for JarModule
includeInApplicationXml - should JarModule be included in application Xml
Returns:
an ear module for this artifact
Throws:
UnknownArtifactTypeException - if the artifact is not handled

getStandardArtifactTypes

public static java.util.List getStandardArtifactTypes()
Returns a list of standard artifact types.

Returns:
the standard artifact types

isStandardArtifactType

public static boolean isStandardArtifactType(java.lang.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-2009 The Apache Software Foundation. All Rights Reserved.