Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Application.cfc
- component extends=framework.one {
- this.ormenabled = true;
- this.datasource = "store";
- this.ormSettings.dbCreate = "dropcreate";
- this.ormSettings.logsql = true;
- this.ormSettings.dialect = "Oracle10g";
- variables.framework.reloadApplicationOnEveryRequest = true;
- variables.framework.diEngine = "aop1";
- //variables.framework.diConfig = { interceptors = [ { beanName = "storeService", interceptorName = "StoreInterceptor", methods = "*" } ] };
- //variables.framework.diConfig.interceptors = [ { beanName = "storeService", interceptorName = "StoreInterceptor" } ];
- variables.framework.usingSubsystems = true;
- variables.framework.defaultSubsystem = "public";
- variables.framework.generateSES = true;
- this.sessionManagement = true;
- this.invokeImplicitAccessor = true;
- public void function setupApplication(){
- getbeanfactory().intercept("store","StoreInterceptor","*");
- if ( StructKeyExists(url, "reload")){
- ormReload();
- applicationstop();
- }
- }
- public void function setupRequest(){
- request.jslib = [];
- request.jsscript = [];
- }
- public void function setupSession(){
- if ( !StructKeyExists(session,"cart"))
- session.cart = variables.getbeanfactory().getBean('cartBean');
- }
- }
- models/interceptors/StoreInterceptor.cfc
- component accessors="true"
- {
- property framework;
- function before(target, methodname, args){
- getFramework().frameworkTrace("xxxxxxxxxxxx inside interceptor before xxxxxxxxxxxx", arguments);
- writedump(arguments);
- abort;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement