Class Resolution
java.lang.Object
org.apache.maven.api.plugin.descriptor.Resolution
- All Implemented Interfaces:
Serializable
@Experimental
@Generated
@ThreadSafe
@Immutable
public class Resolution
extends Object
implements Serializable
Dependency collection or resolution injection.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Builder class used to create Resolution instances. -
Constructor Summary
ModifierConstructorDescriptionprotected
Resolution
(Resolution.Builder builder) Constructor for this class, to be called from its subclasses andResolution.Builder
. -
Method Summary
Modifier and TypeMethodDescriptiongetField()
the name of the field to be injectedpathScope used to flatten dependencieseithercollect
,flatten
, orresolve
static Resolution.Builder
Creates a newResolution
builder instance.static Resolution.Builder
newBuilder
(boolean withDefaults) Creates a newResolution
builder instance using default values or not.static Resolution.Builder
newBuilder
(Resolution from) Creates a newResolution
builder instance using the specified object as a basis.static Resolution.Builder
newBuilder
(Resolution from, boolean forceCopy) Creates a newResolution
builder instance using the specified object as a basis.static Resolution
Creates a newResolution
instance.static Resolution
newInstance
(boolean withDefaults) Creates a newResolution
instance using default values or not.with()
Creates a new builder with this object as the basis.Creates a newResolution
instance using the specified field.withPathScope
(String pathScope) Creates a newResolution
instance using the specified pathScope.withRequestType
(String requestType) Creates a newResolution
instance using the specified requestType.
-
Constructor Details
-
Resolution
Constructor for this class, to be called from its subclasses andResolution.Builder
.- See Also:
-
-
Method Details
-
getField
the name of the field to be injected- Returns:
- a
String
-
getPathScope
pathScope used to flatten dependencies- Returns:
- a
String
-
getRequestType
eithercollect
,flatten
, orresolve
- Returns:
- a
String
-
with
Creates a new builder with this object as the basis.- Returns:
- a
Builder
-
withField
Creates a newResolution
instance using the specified field.- Parameters:
field
- the newString
to use- Returns:
- a
Resolution
with the specified field
-
withPathScope
Creates a newResolution
instance using the specified pathScope.- Parameters:
pathScope
- the newString
to use- Returns:
- a
Resolution
with the specified pathScope
-
withRequestType
Creates a newResolution
instance using the specified requestType.- Parameters:
requestType
- the newString
to use- Returns:
- a
Resolution
with the specified requestType
-
newInstance
Creates a newResolution
instance. Equivalent tonewInstance(true)
.- Returns:
- a new
Resolution
- See Also:
-
newInstance
Creates a newResolution
instance using default values or not. Equivalent tonewBuilder(withDefaults).build()
.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Resolution
-
newBuilder
Creates a newResolution
builder instance. Equivalent tonewBuilder(true)
.- Returns:
- a new
Builder
- See Also:
-
newBuilder
Creates a newResolution
builder instance using default values or not.- Parameters:
withDefaults
- the boolean indicating whether default values should be used- Returns:
- a new
Builder
-
newBuilder
Creates a newResolution
builder instance using the specified object as a basis. Equivalent tonewBuilder(from, false)
.- Parameters:
from
- theResolution
instance to use as a basis- Returns:
- a new
Builder
-
newBuilder
Creates a newResolution
builder instance using the specified object as a basis.- Parameters:
from
- theResolution
instance to use as a basisforceCopy
- the boolean indicating if a copy should be forced- Returns:
- a new
Builder
-