ComponentSelection

API Documentation:ComponentSelection

Represents a tuple of the component selector of a module and a candidate version to be evaluated in a component selection rule.

Properties

PropertyDescription
candidate

Gets the candidate version of the module.

metadata

Gets the metadata of the component.

Methods

MethodDescription
getDescriptor(descriptorClass)

Used to access a specific descriptor format.

reject(reason)

Rejects the candidate for the resolution.

Script blocks

No script blocks

Property details

ModuleComponentIdentifier candidate (read-only)

Gets the candidate version of the module.

ComponentMetadata metadata (read-only)

Gets the metadata of the component.

The metadata may not be available, in which case null is returned. Unavailable metadata may be caused by a module published without associated metadata.

Method details

T getDescriptor(Class<T> descriptorClass)

Used to access a specific descriptor format.

For an Ivy module, an IvyModuleDescriptor can be requested and returned.

If the descriptor type requested does not exist for the module under selection, null is returned.

void reject(String reason)

Rejects the candidate for the resolution.