Class CoreExtension
- java.lang.Object
-
- org.apache.maven.cli.internal.extension.model.CoreExtension
-
- All Implemented Interfaces:
java.io.Serializable
public class CoreExtension extends java.lang.Object implements java.io.Serializable
Describes a build extension to utilise.- Version:
- $Revision$ $Date$
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.String
artifactId
The artifact ID of the extension.private java.lang.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).private java.lang.String
groupId
The group ID of the extension's artifact.private java.lang.String
version
The version of the extension.
-
Constructor Summary
Constructors Constructor Description CoreExtension()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getArtifactId()
Get the artifact ID of the extension.java.lang.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).java.lang.String
getGroupId()
Get the group ID of the extension's artifact.java.lang.String
getId()
Gets the identifier of the extension.java.lang.String
getVersion()
Get the version of the extension.void
setArtifactId(java.lang.String artifactId)
Set the artifact ID of the extension.void
setClassLoadingStrategy(java.lang.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(java.lang.String groupId)
Set the group ID of the extension's artifact.void
setVersion(java.lang.String version)
Set the version of the extension.
-
-
-
Field Detail
-
groupId
private java.lang.String groupId
The group ID of the extension's artifact.
-
artifactId
private java.lang.String artifactId
The artifact ID of the extension.
-
version
private java.lang.String version
The version of the extension.
-
classLoadingStrategy
private java.lang.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).
-
-
Method Detail
-
getArtifactId
public java.lang.String getArtifactId()
Get the artifact ID of the extension.- Returns:
- String
-
getClassLoadingStrategy
public java.lang.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 java.lang.String getGroupId()
Get the group ID of the extension's artifact.- Returns:
- String
-
getVersion
public java.lang.String getVersion()
Get the version of the extension.- Returns:
- String
-
setArtifactId
public void setArtifactId(java.lang.String artifactId)
Set the artifact ID of the extension.- Parameters:
artifactId
- a artifactId object.
-
setClassLoadingStrategy
public void setClassLoadingStrategy(java.lang.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(java.lang.String groupId)
Set the group ID of the extension's artifact.- Parameters:
groupId
- a groupId object.
-
setVersion
public void setVersion(java.lang.String version)
Set the version of the extension.- Parameters:
version
- a version object.
-
getId
public java.lang.String getId()
Gets the identifier of the extension.- Returns:
- The extension id in the form
<groupId>:<artifactId>:<version>
, nevernull
.
-
-