Files
java-tutorials/play-framework/introduction/app/services/Counter.java
T

14 lines
370 B
Java
Raw Normal View History

2016-09-13 18:52:27 +03:00
package services;
/**
* This interface demonstrates how to create a component that is injected
* into a controller. The interface represents a counter that returns a
* incremented number each time it is called.
*
* The {@link Modules} class binds this interface to the
* {@link AtomicCounter} implementation.
*/
public interface Counter {
int nextCount();
}