commore  1.0.6-SNAPSHOT
All Classes Namespaces Functions Variables Typedefs Enumerations Pages
commore::ServiceFactory Class Referenceabstract

#include <Service.h>

+ Inheritance diagram for commore::ServiceFactory:

Public Member Functions

 ServiceFactory (const AChar *class_name, bool noregister=false)
 
 ~ServiceFactory ()
 
const AStringget_class_name () const
 
virtual PService create (const AChar *class_name, const AChar *name, const AChar *args)=0
 

Static Public Member Functions

static int get (const AChar *class_name, List< ServiceFactory * > &factoryList)
 

Detailed Description

Service factory

Constructor & Destructor Documentation

commore::ServiceFactory::ServiceFactory ( const AChar *  class_name,
bool  noregister = false 
)

Constructor that auto register

commore::ServiceFactory::~ServiceFactory ( )

Destructor : auto unregister

Member Function Documentation

virtual PService commore::ServiceFactory::create ( const AChar *  class_name,
const AChar *  name,
const AChar *  args 
)
pure virtual

Create an service instance

Parameters
class_name: class of the service
name: instance name
args: specification for initialization

Implemented in commore::DefaultServiceFactory< T >.

static int commore::ServiceFactory::get ( const AChar *  class_name,
List< ServiceFactory * > &  factoryList 
)
static

Get factory list for class_name


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