org::xmlBlaster::client::protocol::socket::SocketDriverFactory Class Reference

Factory used to create instances of SocketDriver objects. More...

Collaboration diagram for org::xmlBlaster::client::protocol::socket::SocketDriverFactory:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ~SocketDriverFactory ()
SocketDrivergetDriverInstance (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 SocketDriverFactorygetFactory (org::xmlBlaster::util::Global &global)

Friends

class Object_Lifetime_Manager
class ManagedObject
SocketDriverFactorygetFactory (org::xmlBlaster::util::Global &global)

Detailed Description

Factory used to create instances of SocketDriver objects.

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.


Constructor & Destructor Documentation

org::xmlBlaster::client::protocol::socket::SocketDriverFactory::~SocketDriverFactory (  ) 

Definition at line 48 of file SocketDriverFactory.cpp.


Member Function Documentation

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().


Friends And Related Function Documentation

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.


The documentation for this class was generated from the following files: