This is the concrete factory for the database sequency loader strategy. More...
#include <SequenceLoaderStrategyFactory.h>
Public Types | |
typedef FactoryDictionary < AbstractFactory < AbstractGraphLoaderStrategy, std::string, TKEYCOMPARE > , std::string, TKEYCOMPARE > | dictionary_type |
typedef AbstractFactory | factory_type |
Public Member Functions | |
const std::string & | getKey () const |
It returns the factory key associated to the concreate factory. More... | |
const std::string & | getType () const |
Returns the type (name) of this factory. More... | |
~SequenceLoaderStrategyFactory () | |
Destructor. More... | |
Static Public Member Functions | |
static void | finalize () |
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ... More... | |
static const factory_type * | find (const std::string &factoryKey) |
static dictionary_type & | getDictionary () |
It returns a reference to the internal dictionary of concrete factories. More... | |
static void | initialize () |
It initializes the factory: the singleton instance will be registered in the abstract factory ... More... | |
static AbstractGraphLoaderStrategy * | make () |
It creates and returns default graph loader strategy. More... | |
static AbstractGraphLoaderStrategy * | make (const std::string &lsType) |
It creates graph loader strategy with the proper type. More... | |
static AbstractGraphLoaderStrategy * | make (const std::string &lsType, GraphMetadata *gm) |
It creates graph loader strategy with the proper type. More... | |
Protected Member Functions | |
te::graph::AbstractGraphLoaderStrategy * | build () |
Builder Function used to create the class object. More... | |
te::graph::AbstractGraphLoaderStrategy * | create (GraphMetadata *gm) |
This method must be implemented by subclasses (load strategy types). More... | |
SequenceLoaderStrategyFactory () | |
Constructor. More... | |
Protected Attributes | |
std::string | m_factoryKey |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction. More... | |
Static Private Attributes | |
static SequenceLoaderStrategyFactory * | sm_factory |
Static instance used to register the factory. More... | |
This is the concrete factory for the database sequency loader strategy.
Definition at line 47 of file SequenceLoaderStrategyFactory.h.
|
inherited |
Definition at line 73 of file AbstractFactory.h.
|
inherited |
Definition at line 77 of file AbstractFactory.h.
|
inline |
Destructor.
Definition at line 52 of file SequenceLoaderStrategyFactory.h.
|
protected |
Constructor.
Definition at line 53 of file SequenceLoaderStrategyFactory.cpp.
|
protectedvirtual |
Builder Function used to create the class object.
Implements te::common::AbstractFactory< AbstractGraphLoaderStrategy, std::string >.
Definition at line 65 of file SequenceLoaderStrategyFactory.cpp.
|
protectedvirtual |
This method must be implemented by subclasses (load strategy types).
gm | The necessary graph information |
Implements te::graph::AbstractGraphLoaderStrategyFactory.
Definition at line 58 of file SequenceLoaderStrategyFactory.cpp.
|
static |
It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ...
Definition at line 47 of file SequenceLoaderStrategyFactory.cpp.
Referenced by te::graph::Module::finalize().
|
staticinherited |
|
staticinherited |
It returns a reference to the internal dictionary of concrete factories.
The dictionary is a singleton.
|
inherited |
It returns the factory key associated to the concreate factory.
|
virtual |
Returns the type (name) of this factory.
Implements te::graph::AbstractGraphLoaderStrategyFactory.
Definition at line 36 of file SequenceLoaderStrategyFactory.cpp.
References te::graph::Globals::sm_factoryLoaderStrategyTypeSequence.
|
static |
It initializes the factory: the singleton instance will be registered in the abstract factory ...
Definition at line 41 of file SequenceLoaderStrategyFactory.cpp.
Referenced by te::graph::Module::initialize().
|
staticinherited |
It creates and returns default graph loader strategy.
Definition at line 37 of file AbstractGraphLoaderStrategyFactory.cpp.
References te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make(), and TE_DEFAULT_GRAPH_LOADER_STRATEGY_TYPE.
Referenced by te::graph::AbstractGraphFactory::getLoaderStrategy().
|
staticinherited |
It creates graph loader strategy with the proper type.
lsType | Type The name of the specific graph loader strategy type to be used to create. |
Definition at line 42 of file AbstractGraphLoaderStrategyFactory.cpp.
References te::common::Convert2UCase(), and te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::make().
|
staticinherited |
It creates graph loader strategy with the proper type.
lsType | Type The name of the specific graph loader strategy type to be used to create. |
gm | Pointer to a class that defines the graph metadata |
Definition at line 49 of file AbstractGraphLoaderStrategyFactory.cpp.
References te::common::Convert2UCase(), te::graph::AbstractGraphLoaderStrategyFactory::create(), te::common::FactoryDictionary< TFACTORY, TFACTORYKEY, TKEYCOMPARE >::find(), te::common::AbstractFactory< TPRODUCT, TFACTORYKEY, TKEYCOMPARE >::getDictionary(), and TE_TR.
|
protectedinherited |
The key that identifies the concrete factory: it will be used for unregistering the factory during destruction.
Definition at line 136 of file AbstractFactory.h.
|
staticprivate |
Static instance used to register the factory.
Definition at line 86 of file SequenceLoaderStrategyFactory.h.