External interceptors location

5 views
Skip to first unread message

Nolan Dubeau

unread,
Dec 14, 2010, 6:26:09 PM12/14/10
to col...@googlegroups.com
Hi folks,

Is it possible to set an external interceptors location in coldbox.cfc? I'm looking for a way to centrally store all of my interceptors?

Thanks.


Nolan Dubeau

Sent from my Commodore-64
Load *.*,8,1

br...@bradwood.com

unread,
Dec 14, 2010, 6:36:37 PM12/14/10
to col...@googlegroups.com
Interceptors don't use a convention.  You can put them anywhere you want.  (For the record, we had a recent thread about this, and I suggested we implement an interceptors and externalIntercetpors convention)

I store all my interceptors for my apps in a common folder outside the web root.  Since your interceptors are declared in your config with a fully-qualified dot path (com.company.intercetpors.ssl) then it doesn't really matter where they are.

Thanks!

~Brad

Luis Majano

unread,
Dec 14, 2010, 6:36:20 PM12/14/10
to col...@googlegroups.com
interceptors can be anywhere 
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



--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To post to this group, send email to col...@googlegroups.com
To unsubscribe from this group, send email to coldbox-u...@googlegroups.com
For more options, visit this group at http://groups-beta.google.com/group/coldbox
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org

Aaron Greenlee

unread,
Dec 14, 2010, 8:55:43 PM12/14/10
to col...@googlegroups.com
I usually have a global mapping called 'shared' and simply reference my interceptor like so:

'shared.interceptors.fooBar'.

Thanks.

Aaron  Greenlee

Nolan Dubeau

unread,
Dec 15, 2010, 8:35:56 AM12/15/10
to col...@googlegroups.com, col...@googlegroups.com
Thanks guys. Makes sense.  Conventions would be handy too

Second question.  If I manually announce an interception is it possible to have two or multiple interceptor methods respond to the announcement?  Thanks. 


Nolan Dubeau

Sent from my Commodore-64
Load *.*,8,1
--

Aaron Greenlee

unread,
Dec 15, 2010, 11:19:02 AM12/15/10
to col...@googlegroups.com
Yes. ColdBox learns what interceptors listen for when they are constructed and executes framework and custom interception points in the interceptor order you define within your config. Order is important when you register your interceptors.

Aaron Greenlee

Curt Gratz

unread,
Dec 15, 2010, 11:20:17 AM12/15/10
to ColdBox Platform
Nolan,

Check out my blog post on Custom Interception Points.

http://blog.coldbox.org/post.cfm/custom-interception-points-in-coldbox

This should show you how to do this exact thing.

Curt Gratz
Computer Know How

On Dec 15, 7:35 am, Nolan Dubeau <nolandub...@gmail.com> wrote:
> Thanks guys. Makes sense.  Conventions would be handy too
>
> Second question.  If I manually announce an interception is it possible to have two or multiple interceptor methods respond to the announcement?  Thanks.
>
> Nolan Dubeau
>
> Sent from my Commodore-64
> Load *.*,8,1
>

Nolan Dubeau

unread,
Dec 15, 2010, 2:19:57 PM12/15/10
to col...@googlegroups.com
HI Curt,

Great Post! I really see the power of interception chaining after watching the video. Thanks for sending that along.

Nolan

Luis Majano

unread,
Dec 15, 2010, 2:57:56 PM12/15/10
to col...@googlegroups.com
Interceptors are amazing!! I love that feature!! Another great way to extend your apps, I do this all the time.  Let's say you are building a blog and you reach the comments section and you do this:

#announceInterception("beforeComments", data)#

Comments Here

#announceInterception("afterComments",data)#

With this you can use the interceptor's output buffer to send output back to the caller in an elegant manner.  The buffer also chains with the interceptors as they fire one by one.  This allows you a very elegant way to produce content on the screen exactly where you want in an event-driven paradigm approach.



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


Andrew Scott

unread,
Dec 15, 2010, 7:08:46 PM12/15/10
to col...@googlegroups.com
The only problem I have with this Video is that it is too small and doesn't
use focus areas to zoom into the important focused area.

Otherwise I may as well just be listening to a podcast, with blurred images.

Regards,
Andrew Scott
http://www.andyscott.id.au/

Curt Gratz

unread,
Dec 15, 2010, 7:15:32 PM12/15/10
to col...@googlegroups.com

If you watch the hd version it's watchable, but I agree need to use a different resolution next time.

Sent from my U.S. Cellular Android device

--

Nolan Dubeau

unread,
Dec 15, 2010, 9:23:47 PM12/15/10
to col...@googlegroups.com, <coldbox@googlegroups.com>
View it on vimeo and you can watch it HD. Vimeo limits the quality when embedded on external sites.

Nolan Dubeau


Sent from my Commodore-64
Load *.*,8,1

> --
> You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
> To post to this group, send email to col...@googlegroups.com
> To unsubscribe from this group, send email to coldbox-u...@googlegroups.com

Andrew Scott

unread,
Dec 16, 2010, 1:01:25 AM12/16/10
to col...@googlegroups.com
Strange the HD version was blurry to me, might have to try it again.
Reply all
Reply to author
Forward
0 new messages