Class CentralDogmaBeanConfig

java.lang.Object
com.linecorp.centraldogma.client.updater.CentralDogmaBeanConfig

public final class CentralDogmaBeanConfig extends Object
Provides the necessary information to CentralDogmaBeanFactory so that the bean properties are mirrored from a file in Central Dogma.
See Also:
  • Constructor Details

    • CentralDogmaBeanConfig

      public CentralDogmaBeanConfig(@Nullable String project, @Nullable String repository, @Nullable String path, @Nullable String jsonPath)
      Creates a new instance.
      Parameters:
      project - the Central Dogma project name
      repository - the Central Dogma repository name
      path - the path of the file in Central Dogma
      jsonPath - the JSON path expression that will be evaluated when retrieving the file
  • Method Details

    • project

      public Optional<String> project()
      Returns the Central Dogma project name.
      Returns:
      Optional.empty() if the project name is unspecified
    • repository

      public Optional<String> repository()
      Returns the Central Dogma repository name.
      Returns:
      Optional.empty() if the repository name is unspecified
    • path

      public Optional<String> path()
      Returns the path of the file in Central Dogma.
      Returns:
      Optional.empty() if the path is unspecified
    • jsonPath

      public Optional<String> jsonPath()
      Returns the JSON path expression that will be evaluated when retrieving the file.
      Returns:
      Optional.empty() if the JSON path expression is unspecified
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object