onlyForAttribute

abstract fun <T> onlyForAttribute(attribute: Attribute<T>, validValues: Array<T>)(source)

Declares that this repository will only be searched if the consumer requires a specific attribute.

Parameters

attribute

the attribute

validValues

the list of accepted values

<T>

the type of the attribute