@Generated @ThreadSafe @Immutable public class Lifecycle extends Object implements Serializable
Modifier and Type | Class and Description |
---|---|
static class |
Lifecycle.Builder
Builder class used to create Lifecycle instances.
|
Modifier and Type | Method and Description |
---|---|
String |
getId()
The ID of this lifecycle, for identification in the mojo descriptor.
|
List<Phase> |
getPhases()
The phase mappings for this lifecycle.
|
static Lifecycle.Builder |
newBuilder()
Creates a new Lifecycle builder instance.
|
static Lifecycle.Builder |
newBuilder(boolean withDefaults)
Creates a new Lifecycle builder instance using default values or not.
|
static Lifecycle.Builder |
newBuilder(Lifecycle from)
Creates a new Lifecycle builder instance using the specified object as a basis.
|
static Lifecycle.Builder |
newBuilder(Lifecycle from,
boolean forceCopy)
Creates a new Lifecycle builder instance using the specified object as a basis.
|
static Lifecycle |
newInstance()
Creates a new Lifecycle instance.
|
static Lifecycle |
newInstance(boolean withDefaults)
Creates a new Lifecycle instance using default values or not.
|
Lifecycle.Builder |
with()
Creates a new builder with this object as the basis.
|
Lifecycle |
withId(String id)
Creates a new Lifecycle instance using the specified id.
|
Lifecycle |
withPhases(Collection<Phase> phases)
Creates a new Lifecycle instance using the specified phases.
|
public String getId()
@Nonnull public Lifecycle.Builder with()
@Nonnull public Lifecycle withId(String id)
@Nonnull public Lifecycle withPhases(Collection<Phase> phases)
@Nonnull public static Lifecycle newInstance()
newInstance( true )
.newInstance(boolean)
@Nonnull public static Lifecycle newInstance(boolean withDefaults)
newBuilder( withDefaults ).build()
.@Nonnull public static Lifecycle.Builder newBuilder()
newBuilder( true )
.newBuilder(boolean)
@Nonnull public static Lifecycle.Builder newBuilder(boolean withDefaults)
@Nonnull public static Lifecycle.Builder newBuilder(Lifecycle from)
newBuilder( from, false )
.@Nonnull public static Lifecycle.Builder newBuilder(Lifecycle from, boolean forceCopy)
Copyright © 2001–2022 The Apache Software Foundation. All rights reserved.