AngelConfigurer
, that has special privileges within the framework - they act as plug-ins and can be called via app.configure()
.Angel
instance as a parameter, and return a Future
(the result of which will be ignored, unless it throws an error). Angel
instances have several facilities available to be customized, and thus it is easy to use a custom plug-in to bring about desired functionality within your application.startServer
.app.configure()
. However, you may run into certain plug-ins that depend on other facilities already being available, or all of your services already being mounted. You can set aside a plug-in to be run just before server startupby adding it to app.startupHooks
, instead of directly calling app.configure()
.Angel.shutdownHooks
.