Hello,
what would you think of adding an isRunning() method to Lifecycle interface?
public interface Lifecycle {
void start();
void stop();
boolean isRunning(); <-- not existing
}
?
I would use it to throw easy to understand errors, like when trying to
use a cache which was shutdown.
I'm doing it already but code isn't nice and repeated in some places.
Sanne