http://coldfusion.com logo
#box-products
Title
# box-products
d

deactivateduser

02/15/2022, 4:10 PM
Is there a minimum interface a factory must implement for wire box to work with it?
Mainly looking for docs on the 2 big scenarios, 1. Putting a custom factory above wire box and calling wire box to build a bean 2. Putting a custom factory into wire box so when wire box wants a bean the factory builds it requests the bean from the factory appropriately
First one is really on the factory writer knowing how to call into the different factories. So that one really isn't a request unless a common api is suggested somewhere. But i would want to know how to do the second so I know how wirebox will manage and direct requests for beans.
w

wil-shiftinsert

02/15/2022, 4:27 PM
d

deactivateduser

02/15/2022, 4:32 PM
At first glance possibly but it doesn't show an expected interface or how to tell it to pass the bean name down (haven't looked deeper than a glance at the function at the moment so it may be in there in the dsl comment)
Most factories won't have a getX but would have
getBean(identifier)
Maybe it is the provider interface there hmm
Hmmm maybe not because all that is requiring is a get without params
3 Views