#include <di.hpp>
Inherited by matador::di::instance_strategy< T >, matador::di::singleton_per_thread_strategy< T >, matador::di::singleton_strategy< T >, and matador::di::transient_strategy< T >.
Public Member Functions | |
virtual | ~strategy ()=default |
virtual void * | acquire ()=0 |
Acquires an instance. | |
Interface for the dependency injection creation strategy.
The injected service
|
virtualdefault |
Destructor
|
pure virtual |
Acquires an instance.
Acquires an instance based on the internal strategy and returns an anonymous pointer to the object
Implemented in matador::di::transient_strategy< T >, matador::di::singleton_strategy< T >, matador::di::singleton_per_thread_strategy< T >, and matador::di::instance_strategy< T >.