commore  1.0.6-SNAPSHOT
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros 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

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

Constructor that auto register

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

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

Get factory list for class_name

const AString& commore::ServiceFactory::get_class_name ( ) const
inline

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