In the MetadataFactory we already expose an addFunction(String, Method) method to import a udf based upon a method signature. Internally we also have TeiidFunction annotation such that in our function implementation classes we can simply import all applicable functions with some additional metadata provided by the annotation.
Is there anyone who would benefit from exposing the annotation based metadata in a public api - with the ability in a vdb.xml or ddl to do the equivalent of "import function(s) from module" such that the metadata is built from the functions themselves. This saves having to include boiler plate create foreign function ... statements.
If available, we would make use of it but the existing mechanism isn't very onerous. I guess, if it's pretty cheap to implement then it sounds good but if not, then it's not worth it.