Collaboration diagram for org::xmlBlaster::client::protocol::socket::SocketDriverFactory:
Public Member Functions | |
~SocketDriverFactory () | |
SocketDriver & | getDriverInstance (org::xmlBlaster::util::Global *global) |
gets an instance of a socket driver with the specified name. | |
int | killDriverInstance (org::xmlBlaster::util::Global *global) |
Kills the driver instance with the given name. | |
Static Public Member Functions | |
static SocketDriverFactory & | getFactory (org::xmlBlaster::util::Global &global) |
Friends | |
class | Object_Lifetime_Manager |
class | ManagedObject |
SocketDriverFactory & | getFactory (org::xmlBlaster::util::Global &global) |
It currently is a singleton class and has for that reason private constructors, destructor and assignment operator. To get a reference to the singleton instance you must invoke getFactory(...).
Definition at line 28 of file SocketDriverFactory.h.
org::xmlBlaster::client::protocol::socket::SocketDriverFactory::~SocketDriverFactory | ( | ) |
Definition at line 48 of file SocketDriverFactory.cpp.
static SocketDriverFactory& org::xmlBlaster::client::protocol::socket::SocketDriverFactory::getFactory | ( | org::xmlBlaster::util::Global & | global | ) | [static] |
SocketDriver & org::xmlBlaster::client::protocol::socket::SocketDriverFactory::getDriverInstance | ( | org::xmlBlaster::util::Global * | global | ) |
gets an instance of a socket driver with the specified name.
Definition at line 73 of file SocketDriverFactory.cpp.
References org::xmlBlaster::util::I_Log::call(), org::xmlBlaster::util::Global::getLog(), and org::xmlBlaster::util::lexical_cast().
int org::xmlBlaster::client::protocol::socket::SocketDriverFactory::killDriverInstance | ( | org::xmlBlaster::util::Global * | global | ) |
Kills the driver instance with the given name.
Note that if you invoked getDriverInstance several times with the same global object, you just decrement the internal reference counter. When the reference counter reaches zero, the driver is really destroyed.
Definition at line 101 of file SocketDriverFactory.cpp.
References org::xmlBlaster::util::I_Log::call(), org::xmlBlaster::util::Global::getId(), org::xmlBlaster::util::Global::getLog(), and org::xmlBlaster::util::lexical_cast().
friend class Object_Lifetime_Manager [friend] |
Definition at line 33 of file SocketDriverFactory.h.
friend class ManagedObject [friend] |
Definition at line 34 of file SocketDriverFactory.h.
SocketDriverFactory & org::xmlBlaster::client::protocol::socket::SocketDriverFactory::getFactory | ( | org::xmlBlaster::util::Global & | global | ) | [friend] |
Definition at line 63 of file SocketDriverFactory.cpp.