If pure naming is not as critical as requiring standard Java, then:
- java.lang.Runnable.run () as start ()
- java.io.Closeable.close () as stop ()
"io" may be confusing, but it sounds fine to start / stop the embedded web server. The reason that you do not invent your own interface may be the complete decoupling of the modules without introducing a third module (containing the interface that just came up).
source share