@FunctionalInterface
public interface ApplicationStartupListener
ServerLifecycleListener (because server listener is not called for guicey
lightweight tests) and instead of LifeCycle.Listener in cases when only
startup event is important (easier to use).
It also receives application injector to simplify usage.
| Modifier and Type | Method and Description |
|---|---|
void |
started(com.google.inject.Injector injector)
Called after server startup or after guicey initialization in guicey-only tests.
|
void started(com.google.inject.Injector injector)
throws java.lang.Exception
Any thrown exception would shutdown startup.
injector - gucie injectorjava.lang.Exception - in case of errors