RE: [coldbox:17067] Re: [3.5.3] AOP, DI, and FrameworkSupertype

the Aspect (VTMOSecurity.cfc) is extended at runtime with FrameworkSupertype methods automatically, none of those methods are accessible.

Again, I think this is because the actual method in the aspect is injected into the target CFC and now uses the targets “variables” and “this” scope. This means that if you are wrapping a model object with an aspect, the code in that aspect will run in the context of the target object, which doesn’t extend the framework supertype, and therefore would not have access to methods such as setNextEvent().

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: brad@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com

FINALLY figured out why this was so confusing.

You are right Brad… mostly.

By default, this is a dump of an aspect: http://www.screencast.com/t/IAKKcZfibh
No framework supertype methods.

However, if I add a dependency to a entityservice: http://www.screencast.com/t/xp0J2wX2nzmN
They are listed.

Weird.

I also added an issue to github (coldbox platform) about the race condition just so it can be considered in the future.