miqbaldc
10/21/2020, 4:07 PMArkadii Ivanov
10/21/2020, 4:20 PMStore
creation. You don't need to extend any particular class. And there is no any "recommended" approach. You may create an interface + factory, or interface + impl, or just impl. There are also multiple ways of writing impls. Plus one may like passing StoreFactory
as dependency or just create a top-level field and access it directly.