Issues with depepency injection in latest frameworks.

Here I am going to show some of important limitations to Java and Guice approached to dependency injections, particularly where wiring logic should go.

Java Dependency Injection public interface LogService { public void log(String result); }

@Named(“FileLogService”) public class FileLogService implements LogService{ public void log(String result){} }

@Named(“ConsoleLogService”) public class ConsoleLogService implements LogService{ public void […]