# ComponentSelector

interface ComponentSelector(source)

Represents some opaque criteria used to select a component instance during dependency resolution. Various sub-interfaces expose specific details about the criteria.

#### Since

1.10

#### Inheritors

ModuleComponentSelector
ProjectComponentSelector
LibraryComponentSelector

## Functions

getAttributes
Link copied to clipboard
abstract fun getAttributes(): AttributeContainer
The attributes of the module to select the component from.
getCapabilitySelectors
Link copied to clipboard
@Incubating
abstract fun getCapabilitySelectors(): Set<CapabilitySelector>
Returns the set of capabilities that are requested for this component.
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
Returns a human-consumable display name for this selector.
getRequestedCapabilities
Link copied to clipboard
abstract fun getRequestedCapabilities(): List<Capability>
The explicitly requested capabilities for this component.
matchesStrictly
Link copied to clipboard
abstract fun matchesStrictly(identifier: ComponentIdentifier): Boolean
Checks if selector matches component identifier.