Re: [Cppcms-users] Post-attach/add hook in cppcms::application
Brought to you by:
artyom-beilis
|
From: Artyom B. <art...@ya...> - 2014-03-05 07:07:20
|
See, mount does not actually create any instance. When you mount an application you provide a factory object. http://cppcms.com/cppcms_ref/latest/structcppcms_1_1applications__pool_1_1factory.html There are ready factories based on templates, but nothing prevents from you to implementing your own factories and doing what ever you like, including running some post construction configurations etc. Artyom Beilis -------------- CppCMS - C++ Web Framework: http://cppcms.com/ CppDB - C++ SQL Connectivity: http://cppcms.com/sql/cppdb/ -------------------------------------------- On Thu, 2/27/14, Joerg Sonnenberger <jo...@br...> wrote: Subject: [Cppcms-users] Post-attach/add hook in cppcms::application To: cpp...@li... Date: Thursday, February 27, 2014, 3:15 AM Hi all, I find myself with the need of running some actions outside the constructor of a sub-application, because virtual methods are involved or because it needs some data from the root of the hierachy. Would it make sense to provide a callback after mount succeeded? Joerg ------------------------------------------------------------------------------ Flow-based real-time traffic analytics software. Cisco certified tool. Monitor traffic, SLAs, QoS, Medianet, WAAS etc. with NetFlow Analyzer Customize your own dashboards, set traffic alerts and generate reports. Network behavioral analysis & security monitoring. All-in-one tool. http://pubads.g.doubleclick.net/gampad/clk?id=126839071&iu=/4140/ostg.clktrk _______________________________________________ Cppcms-users mailing list Cpp...@li... https://lists.sourceforge.net/lists/listinfo/cppcms-users |