AOP in ColdBox

Is anyone using this in ColdBox, have any good examples and/or tips.

Does ColdBox support this natively, will it support this. I noticed that the AOP directory is sort of not being used anymore, is that right?

I guess while I am learning AOP more and more, I am starting to wonder if ColdBox can use it.

I have seen many examples on ColdSpring and ColdBox, but I am looking at not using ColdSpring if I have too.

Regards,

Andrew Scott

http://www.andyscott.id.au/

Interceptors.

I don’t consider interceptors and AOP approach, the idea is that AOP reduces the need for code change. If we take the example that AOP illustrates with logging, interceptors breaks that concept.

Regards,

Andrew Scott

http://www.andyscott.id.au/

What type of AOP are you looking for Andrew.

WireBox is still to be completed with all of its AOP cababilities but we offer as of now the following:

before and after advices via Interceptors
before and after advices local to an event handler
around advices local to an event handler

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

Sorry to say Andrew, but the base of AOP is to create intercepting chains that can execute at specific point cuts, such as before, after, around, throws and more.

So interceptors are the base of continuous chained executions.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

I am not sure what I am looking for to be honest, I look at examples like this.

http://www.coldspringframework.org/coldspring/examples/quickstart/index.cfm?page=aop

And wonder how to do this in ColdBox. As it stands now ColdBox from what I can tell I have to explicity setup customInterceptors to do this sort of thing, am I wrong?

Regards,

Andrew Scott

http://www.andyscott.id.au/

Your link from your company’s web page http://wiki.coldbox.org/wiki/WireBox.cfm doesn’t work. What’s the correct link for this documentation?

Regards,

Andrew Scott

http://www.andyscott.id.au/

The WireBox documentation is yet to be published, I am working on that. As for current AOP approaches, what currently exists are using the before and after advices like: preEvent, postEvent, preHandler, postHandler. Around events are by convention on handlers via aroundHandler()

Full scale AOP that can be applied to any CFC is still yet to be developed. However, it will be by conventions and the WireBox biding DSL that will be released this week hopefully.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com