|
| 1 | +/** |
| 2 | + * Shared ColdBox configuration for performance harness. |
| 3 | + * appName and appKey are overridden per-version in be-app/config and stable-app/config. |
| 4 | + */ |
| 5 | +component { |
| 6 | + |
| 7 | + function configure(){ |
| 8 | + variables.coldbox = { |
| 9 | + appName : "ColdBoxPerfHarness", |
| 10 | + eventName : "event", |
| 11 | + reinitPassword : "", |
| 12 | + reinitKey : "fwreinit", |
| 13 | + handlersIndexAutoReload : false, |
| 14 | + debugMode : false, |
| 15 | + defaultEvent : "Main.index", |
| 16 | + requestStartHandler : "", |
| 17 | + requestEndHandler : "", |
| 18 | + applicationStartHandler : "", |
| 19 | + applicationEndHandler : "", |
| 20 | + sessionStartHandler : "", |
| 21 | + sessionEndHandler : "", |
| 22 | + missingTemplateHandler : "", |
| 23 | + applicationHelper : "", |
| 24 | + viewsHelper : "", |
| 25 | + modulesExternalLocation : [], |
| 26 | + viewsExternalLocation : "", |
| 27 | + layoutsExternalLocation : "", |
| 28 | + handlersExternalLocation: "", |
| 29 | + requestContextDecorator : "", |
| 30 | + exceptionHandler : "", |
| 31 | + invalidEventHandler : "", |
| 32 | + customErrorTemplate : "", |
| 33 | + handlerCaching : true, |
| 34 | + eventCaching : false, |
| 35 | + proxyReturnCollection : false |
| 36 | + }; |
| 37 | + |
| 38 | + variables.layoutSettings = { |
| 39 | + defaultLayout : "Main.cfm", |
| 40 | + defaultView : "" |
| 41 | + }; |
| 42 | + |
| 43 | + variables.modules = { |
| 44 | + autoReload : false, |
| 45 | + include : [ "perf-module" ], |
| 46 | + exclude : [] |
| 47 | + }; |
| 48 | + |
| 49 | + variables.interceptors = [ |
| 50 | + { class : "#appMapping#.interceptors.PerfInterceptor" } |
| 51 | + ]; |
| 52 | + |
| 53 | + variables.logBox = { |
| 54 | + appenders : { |
| 55 | + console : { class : "ConsoleAppender" } |
| 56 | + }, |
| 57 | + root : { levelmax : "WARN", appenders : "*" } |
| 58 | + }; |
| 59 | + } |
| 60 | + |
| 61 | +} |
0 commit comments