public interface ComponentSelection
| Modifier and Type | Method | Description |
|---|---|---|
ModuleComponentIdentifier |
getCandidate() |
Gets the candidate version of the module.
|
<T> T |
getDescriptor(java.lang.Class<T> descriptorClass) |
Used to access a specific descriptor format.
|
ComponentMetadata |
getMetadata() |
Gets the metadata of the component.
|
void |
reject(java.lang.String reason) |
Rejects the candidate for the resolution.
|
ModuleComponentIdentifier getCandidate()
@Nullable ComponentMetadata getMetadata()
The metadata may not be available, in which case null is returned.
Unavailable metadata may be caused by a module published without associated metadata.
ComponentMetadata or null if not available@Nullable <T> T getDescriptor(java.lang.Class<T> descriptorClass)
For an Ivy module, an ivy module descriptor can be requested and returned.
If the descriptor type requested does not exist for the module under selection, null is returned.
T - the descriptor typedescriptorClass - the descriptor classnull if there was none of the requested type.IvyModuleDescriptorvoid reject(java.lang.String reason)
reason - The reason the candidate was rejected.