|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.sonatype.aether.resolution.DependencyRequest
public class DependencyRequest
A request to resolve transitive dependencies. This request can either be supplied with a CollectRequest to
calculate the transitive dependencies or with an already resolved dependency graph.
RepositorySystem.resolveDependencies(RepositorySystemSession, DependencyRequest),
Artifact.getFile()| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
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, maybe 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, maybe null.| Method Detail |
|---|
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.public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||