webery
webery copied to clipboard
Dependency Injection containers do not have static public accessors to self.
public static DependencyFactory get() {
return DependencyFactoryHolder.instance;
}
Code like this (multiple containers over the last 14 years) is actually ServiceLocator which Di and IoC were trying to eradicate.