Clever use of Silk DI (or Guice) with really simple on-demand new instances

if you write this static class $ { public static T create (final Class type, final Object... additionalParameters) { return ApplicationInjector.instantiate (type, additionalParameters); } public static T select (final Class type) { return ApplicationInjector.getBean (type); } private $ () { } } then you will feel how simple a Dependency Injector can be ! Think… Read More »