public final class DependencyRequest extends Object
CollectRequest
to
calculate the transitive dependencies or with an already resolved dependency graph.Constructor and Description |
---|
DependencyRequest()
Creates an uninitialized request.
|
DependencyRequest(CollectRequest request,
DependencyFilter filter)
Creates a request for the specified collect request and with the given resolution filter.
|
DependencyRequest(DependencyNode node,
DependencyFilter filter)
Creates a request for the specified dependency graph and with the given resolution filter.
|
Modifier and Type | Method and Description |
---|---|
CollectRequest |
getCollectRequest()
Gets the collect request used to calculate the dependency graph whose artifacts should be resolved.
|
DependencyFilter |
getFilter()
Gets the resolution filter used to select which artifacts of the dependency graph should be resolved.
|
DependencyNode |
getRoot()
Gets the root node of the dependency graph whose artifacts should be resolved.
|
RequestTrace |
getTrace()
Gets the trace information that describes the higher level request/operation in which this request is issued.
|
DependencyRequest |
setCollectRequest(CollectRequest collectRequest)
Sets the collect request used to calculate the dependency graph whose artifacts should be resolved.
|
DependencyRequest |
setFilter(DependencyFilter filter)
Sets the resolution filter used to select which artifacts of the dependency graph should be resolved.
|
DependencyRequest |
setRoot(DependencyNode root)
Sets the root node of the dependency graph whose artifacts should be resolved.
|
DependencyRequest |
setTrace(RequestTrace trace)
Sets the trace information that describes the higher level request/operation in which this request is issued.
|
String |
toString() |
public DependencyRequest()
setRoot(DependencyNode)
or
setCollectRequest(CollectRequest)
must eventually be called to create a valid request.public DependencyRequest(DependencyNode node, DependencyFilter filter)
node
- The root node of the dependency graph whose artifacts should be resolved, may be null
.filter
- The resolution filter to use, may be null
.public DependencyRequest(CollectRequest request, DependencyFilter filter)
request
- The collect request used to calculate the dependency graph whose artifacts should be resolved, may
be null
.filter
- The resolution filter to use, may be null
.public DependencyNode getRoot()
null
if none.public DependencyRequest setRoot(DependencyNode root)
setRoot(DependencyNode)
or setCollectRequest(CollectRequest)
must be called to create a valid
request.root
- The root node of the dependency graph, may be null
.null
.public CollectRequest getCollectRequest()
null
if none.public DependencyRequest setCollectRequest(CollectRequest collectRequest)
setRoot(DependencyNode)
or setCollectRequest(CollectRequest)
must be called to create a
valid request. If this request is supplied with a dependency node via setRoot(DependencyNode)
, the
collect request is ignored.collectRequest
- The collect request, may be null
.null
.public DependencyFilter getFilter()
null
to resolve all artifacts of the dependency graph.public DependencyRequest setFilter(DependencyFilter filter)
filter
- The resolution filter, may be null
to resolve all artifacts of the dependency graph.null
.public RequestTrace getTrace()
null
if none.public DependencyRequest setTrace(RequestTrace trace)
trace
- The trace information about the higher level operation, may be null
.null
.Copyright © 2010–2017 The Apache Software Foundation. All rights reserved.