Skip to content

v0.3.0

Latest
Compare
Choose a tag to compare
@manuel-mauky manuel-mauky released this 22 Apr 19:25
· 10 commits to master since this release

Changes

  • bindInstance method can be used to bind an instance of an Interface to the interface type:
EasyDI context = new EasyDI();
MyService serviceInstance = new MyServiceImpl();

context.bindInstance(MyService.class, serviceInstance);
  • Error messages that are thrown when there is a missconfiguration are now providing more information about the type of the error. EasyDI tells you which class asks for an instance that can't be created.