The configuration for a module is contained within in the ModuleConfig.cfc
that lives in the root folder. Here's an overview of the options for configuring your module.
component{// Module Propertiesthis.autoMapModels = true;this.modelNamespace = "test";this.cfmapping = "test";this.dependencies = [ "otherModule", "coolModule" ];​function configure(){​// Settings for my modulesettings = {mySetting = 'isCool',settingsCanBe = ['complex','values']};​// Declare some interceptors to listeninterceptors = [{class='#moduleMapping#.interceptors.TestInterceptor'}];​// Ad-hoc interception events I will announce myselfinterceptorSettings = {customInterceptionPoints = ''};​// Manually map some modelsbinder.map( 'foo' ).to( '#moduleMapping#.com.foo.bar' );​}​// Runs when module is loadedfunction onLoad(){log.info('Module loaded successfully.' );}​// Runs when module is unloadedfunction onUnLoad(){log.info('Module unloaded successfully.' );}​// An interceptor that listens for every command that's run.function preCommand( interceptData ){// I just intercepted ALL Commands in the CLIlog.info('The command executed is #interceptData.CommandInfo.commandString#');}​}