Yes, that’s essentially what I had suggested in my first message, except you’d be wiring in an ID in one instance and DSL in another instance. In theory it will work, as long as you don’t need to pass an entity name in when using the mapping ID.
Honestly though-- I don’t think you’re getting a ton of benifit out of a custom builder if your DSL uses only a single stage. At that point, you just have a glorified mapping ID.
Example of single-stage DSL
inject=“cachebox”
Example of multi-stage DSL (where builders really come in handy)
Thanks!
~Brad
ColdBox Platform Evangelist
Ortus Solutions, Corp
E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com