Fix source detection in case of multiple candidates
This commit improves the detection of a property source when more than one group with the same type exist. Closes gh-16549pull/16606/head
parent
bb0037f041
commit
e99deb95f7
@ -0,0 +1,45 @@
|
||||
{
|
||||
"groups": [
|
||||
{
|
||||
"name": "test.group.one.retry",
|
||||
"type": "com.example.Retry",
|
||||
"sourceType": "org.acme.config.TestApp",
|
||||
"sourceMethod": "one()"
|
||||
},
|
||||
{
|
||||
"name": "test.group.two.retry",
|
||||
"type": "com.example.Retry",
|
||||
"sourceType": "org.acme.config.TestApp",
|
||||
"sourceMethod": "two()"
|
||||
},
|
||||
{
|
||||
"name": "test.group.one.retry.specific",
|
||||
"type": "com.example.Retry",
|
||||
"sourceType": "org.acme.config.TestApp",
|
||||
"sourceMethod": "two()"
|
||||
}
|
||||
],
|
||||
"properties": [
|
||||
{
|
||||
"name": "test.group.one.retry.enabled",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "Whether publishing retries are enabled.",
|
||||
"sourceType": "com.example.Retry",
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"name": "test.group.two.retry.enabled",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "Whether publishing retries are enabled.",
|
||||
"sourceType": "com.example.Retry",
|
||||
"defaultValue": false
|
||||
},
|
||||
{
|
||||
"name": "test.group.one.retry.specific.enabled",
|
||||
"type": "java.lang.Boolean",
|
||||
"description": "Whether publishing retries are enabled.",
|
||||
"sourceType": "com.example.Retry",
|
||||
"defaultValue": false
|
||||
}
|
||||
]
|
||||
}
|
Loading…
Reference in New Issue