Changeset 1586

Show
Ignore:
Timestamp:
06/24/08 10:44:19 (7 months ago)
Author:
lmajano
Message:

_stopchain key on event will now stop the intercepting chain and break.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • coldbox/trunk/system/beans/interceptorState.cfc

    r1538 r1586  
    8282                        /* Invoke the execution point */ 
    8383                        invoker( getInterceptors().get(key), arguments.event, arguments.interceptData ); 
     84                        /* Check for _stopchain */ 
     85                        if( arguments.event.valueExists('_stopchain') ){ 
     86                                break; 
     87                        } 
    8488                }                
    8589                </cfscript> 
  • coldbox/trunk/testharness/config/coldbox.xml.cfm

    r1580 r1586  
    129129                        <Property name="enableSetterInjection">false</Property> 
    130130                </Interceptor> 
    131                 <!--<Interceptor class="coldbox.testharness.interceptors.executionTracer"> 
     131                <Interceptor class="coldbox.testharness.interceptors.executionTracer"> 
    132132                        <Property name="Simple">Luis</Property> 
    133133                        <Property name="Complex">[1,2,3,4,5]</Property> 
    134                 </Interceptor>  -->     
     134                </Interceptor>   
    135135                <Interceptor class="coldbox.system.interceptors.ses"> 
    136136                        <Property name="configFile">config/routes.cfm</Property> 
  • coldbox/trunk/testharness/interceptors/executionTracer.cfc

    r1471 r1586  
    2424<!------------------------------------------- INTERCEPTION POINTS -------------------------------------------> 
    2525 
     26        <cffunction name="preProcess" access="public" returntype="void" hint="My very own custom interception point. " output="false" > 
     27                <!--- ************************************************************* ---> 
     28                <cfargument name="event" required="true" type="coldbox.system.beans.requestContext" hint="The event object."> 
     29                <cfargument name="interceptData" required="true" type="struct" hint="Metadata of intercepted info."> 
     30                <!--- ************************************************************* ---> 
     31                 
     32        </cffunction> 
     33 
    2634        <!--- Custom Interception Point ---> 
    2735        <cffunction name="onLog" access="public" returntype="void" hint="My very own custom interception point. " output="false" > 

Copyright 2006 ColdBox Framework by Luis Majano