The remaining, unparsed arguments
The com.twitter.app.Flags instance associated with this application
Invoke f
before anything else (including flag parsing).
Invoke f
before anything else (including flag parsing).
The name of the application, based on the classname
Create a new shutdown hook.
Create a new shutdown hook. As such, these will be started in no particular order and run concurrently.
Invoke f
after the user's main has exited.
Invoke f
after the user's main has exited.
Invoke f
right before the user's main is invoked.
Invoke f
right before the user's main is invoked.
A composable application trait that includes flag parsing as well as basic application lifecycle (pre- and post- main). Flag parsing is done via com.twitter.app.Flags, an instance of which is defined in the member
flag
. Applications should be constructed with modularity in mind, and common functionality should be extracted into mixins.Note that a missing
main
is OK: mixins may provide behavior that does not require defining a custommain
method.