Skip to content

FunctionCatalog and BeanFactory effectively end up with the same component names, yet different instances #1007

@olegz

Description

@olegz

So, we register functions as @Bean, then we take them from BF, wrap them and add them to FunctionCatalog and perform further lookups on FunctionCatalog.
However a common mistake is developers autowire functions expecting them to be "instrumented functions" when inside BF they are just beans.
We can probably use BPP to instrument functions at startup time in BF. That would ensure that a single function can be equally looked up via BF or FC, while composed functions would still have to be looked up in FC

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions