News for hackers. Stuff that matters.
Re:Cyclic dependencies are evil (2013) by Too on Sunday January 31, 2021 @01:48AM (#25976682)
void createAccount(ICustomer c) { ... } // No dependency to concrete Customer

class Customer implements ICustomer { ... } // Customer Class can be created after Account above

createAccount(new Customer()) // Use of both, with dependency injection

Scanning for classes dynamically using reflection has nothing to do with above. And you certainly don't need any xml or framework to do it either.

There are no comments on this comment yet.