Is there a standard/recommended way to use a Coldbox plugin a custom assertion - specifically, JavaLoader?
I can obviously just use new/createObject but just wondering if, for example, Wirebox injections are supposed to work (a standard property injection is ignored), or there are any other favoured methods?
Ok, stepping back a stage, it seems the custom assertion object isn’t even treated as an object - instead its methods are stripped out and stored in a struct (thus losing reference to the original object’s variable scope).
Is that a deliberate design choice or just an accident of how it happens to be implemented?
I can workaround it by changing the assertion functions to a closure, but is obviously preferable to go with the grain of the framework instead of hacking it.