Annotation Interface CentralDogmaBean


@Qualifier @Target(TYPE) @Retention(RUNTIME) public @interface CentralDogmaBean
Annotates a type to provide the necessary information to CentralDogmaBeanFactory so that the bean properties are mirrored from a file in Central Dogma.

 > @CentralDogmaBean(project = "myProject",
 >                   repository = "myRepo",
 >                   path = "/foo.json")
 > public class Foo {
 >     private int a;
 >     private String b;
 >
 >     public int getA() { return a; }
 >     public void setA(int a) { this.a = a; }
 >     public String getB() { return b; }
 >     public void setB(String b) { this.b = b; }
 > }
 
See Also:
  • Optional Element Summary

    Optional Elements
    Modifier and Type
    Optional Element
    Description
    boolean
    If true, the change of each bean property will be pushed to Central Dogma.
    The JSON path expression that will be evaluated when retrieving the file at the path().
    The path of the file in Central Dogma.
    Central Dogma project name.
    Central Dogma repository name.
  • Element Details

    • project

      String project
      Central Dogma project name.
      Default:
      ""
    • repository

      String repository
      Central Dogma repository name.
      Default:
      ""
    • path

      String path
      The path of the file in Central Dogma.
      Default:
      ""
    • jsonPath

      String jsonPath
      The JSON path expression that will be evaluated when retrieving the file at the path().
      Default:
      ""
    • bidirectional

      boolean bidirectional
      If true, the change of each bean property will be pushed to Central Dogma. Use this property with caution because it can result in unnecessarily large number of commits.
      Default:
      false