Interface RefMetadataProvider<T>

Type Parameters:
T - the type of the metadata

public interface RefMetadataProvider<T>
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
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<com.atlassian.bitbucket.repository.Ref,T>
     
  • Method Details

    • getMetadata

      @Nonnull Map<com.atlassian.bitbucket.repository.Ref,T> getMetadata(@Nonnull RefMetadataContext context)
      Parameters:
      context - the context in which the metadata is being provided
      Returns:
      a map of associated metadata, keyed by the associated Ref