Class CoreExtension

java.lang.Object
org.apache.maven.cli.internal.extension.model.CoreExtension
All Implemented Interfaces:
Serializable

public class CoreExtension extends Object implements Serializable
Describes a build extension to utilise.
Version:
$Revision$ $Date$
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
    The artifact ID of the extension.
    private String
    The class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).
    private String
    The group ID of the extension's artifact.
    private String
    The version of the extension.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the artifact ID of the extension.
    Get the class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).
    Get the group ID of the extension's artifact.
    Gets the identifier of the extension.
    Get the version of the extension.
    void
    setArtifactId(String artifactId)
    Set the artifact ID of the extension.
    void
    setClassLoadingStrategy(String classLoadingStrategy)
    Set the class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).
    void
    setGroupId(String groupId)
    Set the group ID of the extension's artifact.
    void
    setVersion(String version)
    Set the version of the extension.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • groupId

      private String groupId
      The group ID of the extension's artifact.
    • artifactId

      private String artifactId
      The artifact ID of the extension.
    • version

      private String version
      The version of the extension.
    • classLoadingStrategy

      private String classLoadingStrategy
      The class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).
  • Constructor Details

    • CoreExtension

      public CoreExtension()
  • Method Details

    • getArtifactId

      public String getArtifactId()
      Get the artifact ID of the extension.
      Returns:
      String
    • getClassLoadingStrategy

      public String getClassLoadingStrategy()
      Get the class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).
      Returns:
      String
    • getGroupId

      public String getGroupId()
      Get the group ID of the extension's artifact.
      Returns:
      String
    • getVersion

      public String getVersion()
      Get the version of the extension.
      Returns:
      String
    • setArtifactId

      public void setArtifactId(String artifactId)
      Set the artifact ID of the extension.
      Parameters:
      artifactId - a artifactId object.
    • setClassLoadingStrategy

      public void setClassLoadingStrategy(String classLoadingStrategy)
      Set the class loading strategy: 'self-first' (the default), 'parent-first' (loads classes from the parent, then from the extension) or 'plugin' (follows the rules from extensions defined as plugins).
      Parameters:
      classLoadingStrategy - a classLoadingStrategy object.
    • setGroupId

      public void setGroupId(String groupId)
      Set the group ID of the extension's artifact.
      Parameters:
      groupId - a groupId object.
    • setVersion

      public void setVersion(String version)
      Set the version of the extension.
      Parameters:
      version - a version object.
    • getId

      public String getId()
      Gets the identifier of the extension.
      Returns:
      The extension id in the form <groupId>:<artifactId>:<version>, never null.