# MetadataSupplierAware

interface MetadataSupplierAware(source)

Interface for repositories which support custom metadata suppliers and/or version listers. A custom version lister or metadata supplier can be used as an optimization technique to avoid too many requests on a server. By providing such rules, a plugin or build author can provide the necessary information to perform component selection without having to actually fetch the component metadata on a server.

#### Since

4.9

#### Inheritors

MavenArtifactRepository
IvyArtifactRepository

## Functions

setComponentVersionsLister
Link copied to clipboard
abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>)
abstract fun setComponentVersionsLister(lister: Class<out ComponentMetadataVersionLister>, configureAction: Action<in ActionConfiguration>)
Sets a custom component versions lister.
setMetadataSupplier
Link copied to clipboard
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>)
Sets a custom metadata rule, which is capable of supplying the metadata of a component (status, status scheme, changing flag) whenever a dynamic version is requested.
abstract fun setMetadataSupplier(rule: Class<out ComponentMetadataSupplier>, configureAction: Action<in ActionConfiguration>)
Sets a custom metadata rule, possibly configuring the rule.