All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.transferwise.common.context.ownership.TwContextOwnershipProperties Maven / Gradle / Ivy

The newest version!
package com.transferwise.common.context.ownership;

import java.util.ArrayList;
import java.util.List;
import lombok.Data;
import lombok.experimental.Accessors;

@Data
@Accessors(chain = true)
public class TwContextOwnershipProperties {

  private boolean enabled = true;
  
  /**
   * Default owner when no {@code com.transferwise.common.context.ownership.EntryPointOwnerProvider} decides an owner.
   */
  private String defaultOwner = "Generic";

  /**
   * Validates owners against Github teams names, defined in {@code com.transferwise.common.context.ownership.TwTeam}.
   */
  private boolean validateOwners = true;

  /**
   * Maps each entry point to one owner.
   * 
   * 

The format for entries is {@code ::}. * ':' character in parts can be escaped with '\'. * *

Usually the owner value is a Github team's name. * *

Example: {@code Web:/v1/profiles/{profileId} (GET):profile-service} */ private List entryPointToOwnerMappings = new ArrayList<>(); /** * Entrypoint for which we can not determine an owner will be logged out as a warning, once per application runtime. */ private boolean warnAboutEntryPointsWithoutOwner = true; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy