From 362fa346f94e2b3a8c0abb7badfbd7a749a9de1c Mon Sep 17 00:00:00 2001 From: Vincent Richard Date: Mon, 14 Mar 2005 20:35:25 +0000 Subject: Removed 'singleton' and 'singletonManager' classes. --- src/messaging/serviceFactory.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/messaging/serviceFactory.cpp') diff --git a/src/messaging/serviceFactory.cpp b/src/messaging/serviceFactory.cpp index 3007488d..a4ce70a4 100644 --- a/src/messaging/serviceFactory.cpp +++ b/src/messaging/serviceFactory.cpp @@ -45,6 +45,13 @@ serviceFactory::~serviceFactory() } +serviceFactory* serviceFactory::getInstance() +{ + static serviceFactory instance; + return (&instance); +} + + service* serviceFactory::create (session* sess, const string& protocol, authenticator* auth) { -- cgit v1.2.3