Counter.java 370 B

12345678910111213
  1. package services;
  2. /**
  3. * This interface demonstrates how to create a component that is injected
  4. * into a controller. The interface represents a counter that returns a
  5. * incremented number each time it is called.
  6. *
  7. * The {@link Modules} class binds this interface to the
  8. * {@link AtomicCounter} implementation.
  9. */
  10. public interface Counter {
  11. int nextCount();
  12. }