Factory for Bucket. More...
#include <opentrep/factory/FacOpenTrepServiceContext.hpp>
Inheritance diagram for OPENTREP::FacOpenTrepServiceContext:Public Types | |
| typedef std::vector < ServiceAbstract * > | ServicePool_T |
Public Member Functions | |
| ~FacOpenTrepServiceContext () | |
| OPENTREP_ServiceContext & | create (const TravelDBFilePath_T &, const SQLiteDBFilePath_T &) |
| OPENTREP_ServiceContext & | create (const PORFilePath_T &, const TravelDBFilePath_T &, const SQLiteDBFilePath_T &) |
| void | clean () |
Static Public Member Functions | |
| static FacOpenTrepServiceContext & | instance () |
Protected Member Functions | |
| FacOpenTrepServiceContext () | |
Protected Attributes | |
| ServicePool_T | _pool |
Factory for Bucket.
Definition at line 19 of file FacOpenTrepServiceContext.hpp.
|
inherited |
Define the list (pool) of Service objects.
Definition at line 20 of file FacServiceAbstract.hpp.
| OPENTREP::FacOpenTrepServiceContext::~FacOpenTrepServiceContext | ( | ) |
Destructor.
The Destruction put the _instance to NULL in order to be clean for the next FacOpentrepServiceContext::instance()
Definition at line 17 of file FacOpenTrepServiceContext.cpp.
|
inlineprotected |
Default Constructor.
This constructor is protected in order to ensure the singleton pattern.
Definition at line 71 of file FacOpenTrepServiceContext.hpp.
Referenced by instance().
|
static |
Provide the unique instance.
The singleton is instantiated when first used
Definition at line 22 of file FacOpenTrepServiceContext.cpp.
References FacOpenTrepServiceContext(), OPENTREP::FacSupervisor::instance(), and OPENTREP::FacSupervisor::registerServiceFactory().
| OPENTREP_ServiceContext & OPENTREP::FacOpenTrepServiceContext::create | ( | const TravelDBFilePath_T & | iTravelDBFilePath, |
| const SQLiteDBFilePath_T & | iSQLiteDBFilePath | ||
| ) |
Create a new OPENTREP_ServiceContext object.
This new object is added to the list of instantiated objects.
| const | TravelDBFilePath_T& File-path of the Xapian database. |
| const | SQLiteDBFilePath_T& File-path of the SQLite3 database. |
Definition at line 35 of file FacOpenTrepServiceContext.cpp.
References OPENTREP::FacServiceAbstract::_pool.
| OPENTREP_ServiceContext & OPENTREP::FacOpenTrepServiceContext::create | ( | const PORFilePath_T & | iPORFilePath, |
| const TravelDBFilePath_T & | iTravelDBFilePath, | ||
| const SQLiteDBFilePath_T & | iSQLiteDBFilePath | ||
| ) |
Create a new OPENTREP_ServiceContext object.
This new object is added to the list of instantiated objects.
| const | PORFilePath_T& File-path of the POR file. |
| const | TravelDBFilePath_T& File-path of the Xapian database. |
| const | SQLiteDBFilePath_T& File-path of the SQLite3 database. |
Definition at line 51 of file FacOpenTrepServiceContext.cpp.
References OPENTREP::FacServiceAbstract::_pool.
|
inherited |
Destroyed all the object instantiated by this factory.
Definition at line 18 of file FacServiceAbstract.cpp.
References OPENTREP::FacServiceAbstract::_pool.
Referenced by OPENTREP::FacServiceAbstract::~FacServiceAbstract().
|
protectedinherited |
List of instantiated Business Objects
Definition at line 34 of file FacServiceAbstract.hpp.
Referenced by OPENTREP::FacServiceAbstract::clean(), and create().
1.8.6