Arkadii Ivanov10/21/2020, 4:20 PM
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
as dependency or just create a top-level field and access it directly.