component{
// Module Properties
this.autoMapModels = true;
this.modelNamespace = "test";
this.cfmapping = "test";
this.dependencies = [ "otherModule", "coolModule" ];
function configure(){
// Settings for my module
settings = {
mySetting = 'isCool',
settingsCanBe = [
'complex',
'values'
]
};
// Declare some interceptors to listen
interceptors = [
{
class='#moduleMapping#.interceptors.TestInterceptor'
}
];
// Ad-hoc interception events I will announce myself
interceptorSettings = {
customInterceptionPoints = ''
};
// Manually map some models
binder.map( 'foo' ).to( '#moduleMapping#.com.foo.bar' );
}
// Runs when module is loaded
function onLoad(){
log.info('Module loaded successfully.' );
}
// Runs when module is unloaded
function 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 CLI
log.info('The command executed is #interceptData.CommandInfo.commandString#');
}
}component{
// Module Properties
this.autoMapModels = true;
this.modelNamespace = "test";
this.cfmapping = "test";
this.dependencies = [ "otherModule", "coolModule" ];
function configure(){}
}function onLoad(){
log.info('Module loaded successfully.' );
}
function onUnLoad(){
log.info('Module unloaded successfully.' );
}function preCommand( interceptData ){
// I just intercepted ALL Commands in the CLI
log.info('The command executed is #interceptData.CommandInfo.commandString#');
}component{
function configure(){
// Settings for my module
settings = {
mySetting = 'isCool',
settingsCanBe = [
'complex',
'values'
],
andEven = {
nested = {
any = 'way'
},
you = 'like'
}
};
// Declare some interceptors to listen
interceptors = [
{
class='#moduleMapping#.interceptors.TestInterceptor'
},
{
class='#moduleMapping#.interceptors.DoCoolThings',
properties={
coolnessFactor='max',
crankItToEleven=true
}
}
];
// Ad-hoc interception events I will announce myself
interceptorSettings = {
customInterceptionPoints = 'launchInitiated,velocityAcheived,singularityAcquired'
};
// Manually map some models
binder.map( 'foo' ).to( '#moduleMapping#.com.foo.bar' );
}
}