Standalone Mode Listener

component{
function configure(injector,properties){
variables.injector = arguments.injector;
variables.properties = arguments.properties;
log = variables.injector.getLogBox().getLogger( this );
}
function beforeInjectorShutdown(interceptData){
// Do my stuff here:
// I can use a log object because ColdBox is cool and injects one for me already.
log.info("DUDE, I am going down!!!");
}
function afterInstanceCreation(interceptData){
var target = arguments.interceptData.target;
var mapping = arguments.interceptData.mapping;
log.info("The object #mapping.getName()# has just been built, performing my awesome AOP processing on it.");
// process awesome AOP on this target
processAwesomeAOP( target );
}
}Was this helpful?