public interface

RefMetadataProvider

com.atlassian.bitbucket.repository.RefMetadataProvider<T>

Class Overview

A plugin point for associating arbitrary metadata with a Ref.

To define a RefMetadataProvider within your plugin you will need to implement this interface and add the following to your atlassian-plugin.xml.

     <ref-metadata key="my-metadata-provider" class="com.example.MyMetadataProvider" />
 

See Also
  • MetadataMap

Summary

Public Methods
@Nonnull Map<Ref, T> getMetadata(RefMetadataContext context)

Public Methods

@Nonnull public Map<Ref, T> getMetadata (RefMetadataContext context)

Parameters
context the context in which the metadata is being provided
Returns
  • a map of associated metadata, keyed by the associated Ref