Class EarModuleFactory


  • public final class EarModuleFactory
    extends java.lang.Object
    Builds an EarModule based on an Artifact.
    Version:
    $Id: EarModuleFactory.java 1645331 2014-12-13 17:31:09Z khmarbaise $
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.util.List<java.lang.String> STANDARD_ARTIFACT_TYPE
      The list of artifact types.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.List<java.lang.String> 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, JavaEEVersion javaEEVersion, java.lang.String defaultLibBundleDir, java.lang.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

      • STANDARD_ARTIFACT_TYPE

        public static final java.util.List<java.lang.String> STANDARD_ARTIFACT_TYPE
        The list of artifact types.
    • Constructor Detail

      • EarModuleFactory

        public EarModuleFactory()
    • Method Detail

      • newEarModule

        public static EarModule newEarModule​(org.apache.maven.artifact.Artifact artifact,
                                             JavaEEVersion javaEEVersion,
                                             java.lang.String defaultLibBundleDir,
                                             java.lang.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 java.util.List<java.lang.String> 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