Make client object factory-aware

Description

Give the Couchbase Client the ability of being aware of an object factory.

Add a setting called objectFactory that can be set to an instance of WireBox, DI/1, ColdSpring, etc. Create an adapter interface similar to the ioc adapters for Wirebox:

  • containsInstance()

  • getInstance()

When deserializing with an inflateTo argument that's a string, we would check the object factory to see if it has a bean by that ID before falling back on the behavior of treating that string as a component path.

That would prove less typing than creating a closure every time and manually autowiring the bean.

This would also make autoinflate CFCs even nicer inside of ColdBox since WireBox can locate an instance based on the full instantiation path already.

Assignee

Unassigned

Reporter

Brad Wood

Labels

None

Priority

Major