#include <di.hpp>
Inherits matador::di::strategy.
Public Member Functions | |
template<typename ... Args> | |
transient_strategy (Args &&...args) | |
Construct a new transient strategy object. | |
void * | acquire () override |
Acquires an instance. | |
Public Member Functions inherited from matador::di::strategy | |
virtual | ~strategy ()=default |
Implements the transient dependency injection strategy. When ever injected a new instance is created.
T | Type of the object to be injected |
|
inlineexplicit |
Construct a new transient strategy object.
Args | Type of arguments for constructor |
args | Arguments for constructor |
|
inlineoverridevirtual |
Acquires an instance.
Acquires an instance based on the internal strategy and returns an anonymous pointer to the object
Implements matador::di::strategy.