This seems like more of a Guice/your DI framework question, but what are you trying to do? If you’re trying to make an instance of
GetHotDeals
for testing, you just call the constructor like normal, but you’ll have to provide the dependencies, likely having to mock the components it needs or instantiating single-use versions of them
o
oday
01/16/2019, 2:58 PM
no im trying to use it in production code
oday
01/16/2019, 2:58 PM
like I want to run getHotDeals.execute(SubscriberWhichHasMethodsForHandlingComplete)
s
Shawn
01/16/2019, 2:59 PM
Then you’re going to need to inject this deals service into whatever class depends on it
o
oday
01/16/2019, 3:04 PM
clean architecture my ass, man
oday
01/16/2019, 3:05 PM
code like this is garbage if so much external jargon is dependent on understanding even how it’s constructed before even using it