applicationStartHandler in Modules

hi,

is this the right way to cache modules initial metadata?

ModuleConfig.cfc
function onLoad(){
  controller.runEvent('module1:manager.appInit');
}

manager.cfc (handler)

public boolean function appInit() output=false{
        var stMeta = structNew();
  if (NOT getColdboxOCM().lookup('meta@module1')){
      getColdboxOCM().set("meta@module1", stMeta, 0);
    }
  return true;
}

regards,
daniel

yep, you can do whatever you like on the onLoad() method.
Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com