public interface ComponentSelection
Modifier and Type | Method | Description |
---|---|---|
ModuleComponentIdentifier |
getCandidate() |
Gets the candidate version of the module.
|
<T> T |
getDescriptor(Class<T> descriptorClass) |
Used to access a specific descriptor format.
|
ComponentMetadata |
getMetadata() |
Gets the metadata of the component.
|
void |
reject(String reason) |
Rejects the candidate for the resolution.
|
ModuleComponentIdentifier getCandidate()
@Incubating @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@Incubating @Nullable <T> T getDescriptor(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.IvyModuleDescriptor
void reject(String reason)
reason
- The reason the candidate was rejected.