Annotation 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
Modifier and TypeOptional ElementDescriptionboolean
Iftrue
, 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 thepath()
.The path of the file in Central Dogma.Central Dogma project name.Central Dogma repository name.
-
Element Details
-
project
String projectCentral Dogma project name.- Default:
""
-
repository
String repositoryCentral Dogma repository name.- Default:
""
-
path
String pathThe path of the file in Central Dogma.- Default:
""
-
jsonPath
String jsonPathThe JSON path expression that will be evaluated when retrieving the file at thepath()
.- Default:
""
-
bidirectional
boolean bidirectionalIftrue
, 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
-