GH-247 Added spring.cloud.function.definition property

Added spring.cloud.function.definition property which is used by FunctionRegistry as a supplement instruction to resolve nameless lookups.
It is used by web module to map single or multiple (composed) functions to the root path (/)

Resolves #247
This commit is contained in:
Oleg Zhurakousky
2019-01-28 18:47:14 +01:00
parent 3196a2ee8b
commit 589e451d14
6 changed files with 147 additions and 9 deletions

View File

@@ -7,6 +7,12 @@
"type": "java.lang.String",
"description": "Triggers scanning within the specified base packages for any class that is assignable to java.util.function.Function. For each detected Function class, a bean instance will be added to the context.",
"defaultValue": "functions"
},
{
"name": "spring.cloud.function.definition",
"type": "java.lang.String",
"description": "Name (e.g., 'foo') or composition instruction (e.g., 'foo|bar') used to resolve default function especially for cases where there is more then once function available in catalog.",
"defaultValue": ""
}
]
}