@Retention(value=SOURCE) @Target(value=TYPE) public @interface OnStart
Runnable
with public default constructor
that you wish to be instantiated and invoked on start of your module.
Runnables defined by various modules are invoked in parallel and as soon
as possible. It is guaranteed that execution of all runnables is finished
before the startup sequence is claimed over.
Typical initialization code follows:
@OnStart
public class InitializeMe implements Runnable {
public void run() {
// invoke initialization code
}
}
Some modules may want to invoke code when the UI is initialized. In such
case consider using
@OnShowing
annotation.