dependency injection

  • Home
  • /
  • dependency injection
  • 12
    Jun

    Dependency injection with Guice

    Step 1: ======= public interface Discountable { double getDiscount(); } Step 2: Implement above interface =================================== public class EarlyBirdDiscount implements Discountable { @Override public double getDiscount() { return .25;...

    Read More
  • 14
    Oct

    Inversion of control / Dependency injection — what is it?

    Assume you depend on two or objects to create a functional representation of “Add to cart” implementation.  This can be achieved traditionally via: create objects of all dependencies and...

    Read More