Schnittstelle ComponentSelector
- Alle bekannten Unterschnittstellen:
LibraryComponentSelector,ModuleComponentSelector,ProjectComponentSelector
public interface ComponentSelector
Represents some opaque criteria used to select a component instance during dependency resolution. Various sub-interfaces
expose specific details about the criteria.
- Seit:
- 1.10
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungThe attributes of the module to select the component from.Returns the set of capabilities that are requested for this component.Returns a human-consumable display name for this selector.The explicitly requested capabilities for this component.booleanmatchesStrictly(ComponentIdentifier identifier) Checks if selector matches component identifier.
-
Methodendetails
-
getDisplayName
String getDisplayName()Returns a human-consumable display name for this selector.- Gibt zurück:
- Display name
- Seit:
- 1.10
-
matchesStrictly
Checks if selector matches component identifier.- Parameter:
identifier- Component identifier- Gibt zurück:
- if this selector matches exactly the given component identifier.
- Seit:
- 1.10
-
getAttributes
AttributeContainer getAttributes()The attributes of the module to select the component from. The attributes only include selector specific attributes. This means it typically doesn't include any consumer specific attribute.- Gibt zurück:
- the attributes
- Seit:
- 4.9
-
getRequestedCapabilities
List<Capability> getRequestedCapabilities()The explicitly requested capabilities for this component.Prefer
getCapabilitySelectors().- Gibt zurück:
- the explicitly requested capabilities.
- Seit:
- 5.3
-
getCapabilitySelectors
Returns the set of capabilities that are requested for this component.- Gibt zurück:
- All capability selectors. If empty, the default capability will be selected.
- Seit:
- 8.11
-