aside from recompiling with some special logic, is there a way to add a callback to lucee to be notified of access to some scope?
e.g. "every time
application
is touched, run some callback"
b
bhartsfield
05/23/2022, 1:11 PM
Not unless you are running all application scope access through a facade
✅ 1
d
David Rogers
05/23/2022, 1:12 PM
figured as such, threw the dice on asking, maybe someone would go "duh add a hooks.json"
b
bhartsfield
05/23/2022, 1:12 PM
I suppose they still could, but I've never heard of such a thing 🙂
a
Adam Cameron
05/23/2022, 5:55 PM
And of course one always should be abstracting one's access to shared scopes anyhow 😉
So... make the ApplicationAdapter implement the Observer pattern and yer done.
Adam Cameron
05/23/2022, 5:55 PM
[cos of course it's as easy to do as it is to say [cough]]
e
Evil Ware
05/23/2022, 11:53 PM
basically, all code Snicker --Class -> This -> Global --> MyObj[1}