Dynamic realm registration
[anna.git] / source / diameter.comm / Engine.cpp
index 538001a..3a7f843 100644 (file)
@@ -1164,4 +1164,12 @@ void Engine::resetStatistics() throw() {
     localServer(it)->resetStatistics();
 }
 
+void Engine::do_initialize() throw(RuntimeException) {
+  LOGMETHOD(anna::TraceMethod tttm("diameter::comm::Engine", "do_initialize", ANNA_FILE_LOCATION));
+  LOGDEBUG(anna::Logger::debug("Nothing special done on component initialization", ANNA_FILE_LOCATION));
+}
 
+void Engine::lazyInitialize() throw(RuntimeException) {
+  LOGMETHOD(anna::TraceMethod tttm("diameter::comm::Engine", "lazyInitialize", ANNA_FILE_LOCATION));
+  anna::app::Component::initialize(); // this will invoke do_initialize
+}