@Experimental @Generated @ThreadSafe @Immutable public class PluginExecution extends ConfigurationContainer implements Serializable, InputLocationTracker
<execution>
element contains informations required for the
execution of a plugin.Modifier and Type | Class and Description |
---|---|
static class |
PluginExecution.Builder
Builder class used to create PluginExecution instances.
|
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_EXECUTION_ID |
Modifier and Type | Method and Description |
---|---|
List<String> |
getGoals()
The goals to execute with the given configuration.
|
String |
getId()
The identifier of this execution for labelling the goals during the build,
and for matching executions to merge during inheritance and profile injection.
|
InputLocation |
getLocation(Object key)
Gets the location of the specified field in the input source.
|
String |
getPhase()
The build lifecycle phase to bind the goals in this execution to.
|
int |
getPriority()
The priority of this execution compared to other executions which are bound to the same phase.
|
static PluginExecution.Builder |
newBuilder()
Creates a new
PluginExecution builder instance. |
static PluginExecution.Builder |
newBuilder(boolean withDefaults)
Creates a new
PluginExecution builder instance using default values or not. |
static PluginExecution.Builder |
newBuilder(PluginExecution from)
Creates a new
PluginExecution builder instance using the specified object as a basis. |
static PluginExecution.Builder |
newBuilder(PluginExecution from,
boolean forceCopy)
Creates a new
PluginExecution builder instance using the specified object as a basis. |
static PluginExecution |
newInstance()
Creates a new
PluginExecution instance. |
static PluginExecution |
newInstance(boolean withDefaults)
Creates a new
PluginExecution instance using default values or not. |
String |
toString() |
PluginExecution.Builder |
with()
Creates a new builder with this object as the basis.
|
PluginExecution |
withConfiguration(Dom configuration)
Creates a new
PluginExecution instance using the specified configuration. |
PluginExecution |
withGoals(Collection<String> goals)
Creates a new
PluginExecution instance using the specified goals. |
PluginExecution |
withId(String id)
Creates a new
PluginExecution instance using the specified id. |
PluginExecution |
withInherited(String inherited)
Creates a new
PluginExecution instance using the specified inherited. |
PluginExecution |
withPhase(String phase)
Creates a new
PluginExecution instance using the specified phase. |
PluginExecution |
withPriority(int priority)
Creates a new
PluginExecution instance using the specified priority. |
getConfiguration, getInherited, isInherited, newBuilder, newBuilder
public static final String DEFAULT_EXECUTION_ID
public String getId()
String
public String getPhase()
String
public int getPriority()
int
@Nonnull public List<String> getGoals()
List<String>
public InputLocation getLocation(Object key)
getLocation
in interface InputLocationTracker
getLocation
in class ConfigurationContainer
@Nonnull public PluginExecution.Builder with()
with
in class ConfigurationContainer
Builder
@Nonnull public PluginExecution withInherited(String inherited)
PluginExecution
instance using the specified inherited.withInherited
in class ConfigurationContainer
inherited
- the new String
to usePluginExecution
with the specified inherited@Nonnull public PluginExecution withConfiguration(Dom configuration)
PluginExecution
instance using the specified configuration.withConfiguration
in class ConfigurationContainer
configuration
- the new Dom
to usePluginExecution
with the specified configuration@Nonnull public PluginExecution withId(String id)
PluginExecution
instance using the specified id.id
- the new String
to usePluginExecution
with the specified id@Nonnull public PluginExecution withPhase(String phase)
PluginExecution
instance using the specified phase.phase
- the new String
to usePluginExecution
with the specified phase@Nonnull public PluginExecution withPriority(int priority)
PluginExecution
instance using the specified priority.priority
- the new int
to usePluginExecution
with the specified priority@Nonnull public PluginExecution withGoals(Collection<String> goals)
PluginExecution
instance using the specified goals.goals
- the new Collection<String>
to usePluginExecution
with the specified goals@Nonnull public static PluginExecution newInstance()
PluginExecution
instance.
Equivalent to newInstance( true )
.PluginExecution
newInstance(boolean)
@Nonnull public static PluginExecution newInstance(boolean withDefaults)
PluginExecution
instance using default values or not.
Equivalent to newBuilder( withDefaults ).build()
.withDefaults
- the boolean indicating whether default values should be usedPluginExecution
@Nonnull public static PluginExecution.Builder newBuilder()
PluginExecution
builder instance.
Equivalent to newBuilder( true )
.Builder
newBuilder(boolean)
@Nonnull public static PluginExecution.Builder newBuilder(boolean withDefaults)
PluginExecution
builder instance using default values or not.withDefaults
- the boolean indicating whether default values should be usedBuilder
@Nonnull public static PluginExecution.Builder newBuilder(PluginExecution from)
PluginExecution
builder instance using the specified object as a basis.
Equivalent to newBuilder( from, false )
.from
- the PluginExecution
instance to use as a basisBuilder
@Nonnull public static PluginExecution.Builder newBuilder(PluginExecution from, boolean forceCopy)
PluginExecution
builder instance using the specified object as a basis.from
- the PluginExecution
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forcedBuilder
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.